Apitron.PDF.Rasterizer library for .NET
Assembly: Apitron.PDF.Rasterizer (in Apitron.PDF.Rasterizer.dll) Version: 3.0.154.0 (3.0.154.0)
The pixel array that has bitonal format i.e one bit per pixel with padding for each image line.
Bytes per line should be calculated by the formula: ((width & 0x07) != 0 ? (width >> 3) + 1 : width >> 3)
Padding(in bits) might be calculated by the formula: BytesPerLine - width
This delegate will be called if conversion to bitonal should be done by third-party software.
Namespace: Apitron.PDF.Rasterizer.Configuration
Assembly: Apitron.PDF.Rasterizer (in Apitron.PDF.Rasterizer.dll) Version: 3.0.154.0 (3.0.154.0)
Syntax
public delegate byte[] ConvertToBitonalDelegate( int width, int height, byte[] imageData, out int resultingWidth, out int resultingHeight )
Parameters
- width
- Type: SystemInt32
The image width. - height
- Type: SystemInt32
The image height. - imageData
- Type: SystemByte
The image data array of bytes with pixel format BGRA8888(hence a pixel takes 4 bytes), the stride width would be width*4 in this case. - resultingWidth
- Type: SystemInt32
The image width after conversion. - resultingHeight
- Type: SystemInt32
The image height after conversion.
Return Value
Type: ByteThe pixel array that has bitonal format i.e one bit per pixel with padding for each image line.
Remarks
Remarks
See Also