|
|
@ -26,6 +26,7 @@ public class PbmEncoderTests |
|
|
{ |
|
|
{ |
|
|
{ BlackAndWhiteBinary, PbmColorType.BlackAndWhite }, |
|
|
{ BlackAndWhiteBinary, PbmColorType.BlackAndWhite }, |
|
|
{ BlackAndWhitePlain, PbmColorType.BlackAndWhite }, |
|
|
{ BlackAndWhitePlain, PbmColorType.BlackAndWhite }, |
|
|
|
|
|
{ Issue2477, PbmColorType.BlackAndWhite }, |
|
|
{ GrayscaleBinary, PbmColorType.Grayscale }, |
|
|
{ GrayscaleBinary, PbmColorType.Grayscale }, |
|
|
{ GrayscaleBinaryWide, PbmColorType.Grayscale }, |
|
|
{ GrayscaleBinaryWide, PbmColorType.Grayscale }, |
|
|
{ GrayscalePlain, PbmColorType.Grayscale }, |
|
|
{ GrayscalePlain, PbmColorType.Grayscale }, |
|
|
@ -96,6 +97,11 @@ public class PbmEncoderTests |
|
|
public void PbmEncoder_P4_Works<TPixel>(TestImageProvider<TPixel> provider) |
|
|
public void PbmEncoder_P4_Works<TPixel>(TestImageProvider<TPixel> provider) |
|
|
where TPixel : unmanaged, IPixel<TPixel> => TestPbmEncoderCore(provider, PbmColorType.BlackAndWhite, PbmEncoding.Binary); |
|
|
where TPixel : unmanaged, IPixel<TPixel> => TestPbmEncoderCore(provider, PbmColorType.BlackAndWhite, PbmEncoding.Binary); |
|
|
|
|
|
|
|
|
|
|
|
[Theory] |
|
|
|
|
|
[WithFile(Issue2477, PixelTypes.Rgb24)] |
|
|
|
|
|
public void PbmEncoder_P4_Irregular_Works<TPixel>(TestImageProvider<TPixel> provider) |
|
|
|
|
|
where TPixel : unmanaged, IPixel<TPixel> => TestPbmEncoderCore(provider, PbmColorType.BlackAndWhite, PbmEncoding.Binary); |
|
|
|
|
|
|
|
|
[Theory] |
|
|
[Theory] |
|
|
[WithFile(GrayscalePlainMagick, PixelTypes.Rgb24)] |
|
|
[WithFile(GrayscalePlainMagick, PixelTypes.Rgb24)] |
|
|
public void PbmEncoder_P2_Works<TPixel>(TestImageProvider<TPixel> provider) |
|
|
public void PbmEncoder_P2_Works<TPixel>(TestImageProvider<TPixel> provider) |
|
|
|