Calculates the size required for output buffer.
Syntax
Parameters
- inWidth
- Width in pixels of the input image data.
- inBitsPerPixel
- BitsPerPixel of the input image data.
- outWidth
- Width in pixels of the desired output image data.
- outBitsPerPixel
- BitsPerPixel of the desired output image data.
Return Value
The size in bytes of the required output buffer.
Example
This example loads an image at 24 bits per pixel, and creates a new image at 4 bits per pixel, and uses the
Convert method to convert data from 24 bits per pixel to 4 bits per pixel.
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also