.. _doxcsid-class_p1_1_1_image_sdk_1_1_bitmap_format: BitmapFormat Class ~~~~~~~~~~~~~~~~~~ Definition ^^^^^^^^^^ *Namespace:* ``P1.ImageSdk`` Define format of the bitmap memory. See :ref:`BitmapFormatTypeCode ` for predefined bitmap format. :ref:`More...` .. ref-code-block:: csharp :class: doxyrest-overview-code-block public class BitmapFormat .. _csdetails-class_p1_1_1_image_sdk_1_1_bitmap_format: Remarks ^^^^^^^ Define format of the bitmap memory. See :ref:`BitmapFormatTypeCode ` for predefined bitmap format. Constructors ^^^^^^^^^^^^ .. toctree:: :hidden: BitmapFormat BitmapFormat BitmapFormat .. list-table:: :widths: 30 70 * - :ref:`BitmapFormat() ` - Create a :ref:`BitmapFormat ` with Unknown format code * - :ref:`BitmapFormat(BitDepth bitDepth, PixelLayout pixelLayout, params PixelComponent[] pixelComponents) ` - Create a bitmap format with customized info. * - :ref:`BitmapFormat(int code) ` - Create :ref:`BitmapFormat ` from BitmapFormatTypeCode Properties ^^^^^^^^^^ .. toctree:: :hidden: BitmapFormatType BitDepth PixelLayout PixelComponent .. list-table:: :widths: 30 70 * - :ref:`BitmapFormatType ` - Return predefined format code. * - :ref:`BitDepth ` - Data type of each pixel component. * - :ref:`PixelLayout ` - Memory layout of the data buffer * - :ref:`PixelComponent ` - Content of each channel in a pixel. Methods ^^^^^^^ .. toctree:: :hidden: GetBitsPerSample SetAlignment Equals operator BitmapFormat operator== operator!= operator int .. list-table:: :widths: 33 67 * - :ref:`GetBitsPerSample() ` - Number of bit per channel per pixel. See :ref:`BitDepth `. * - :ref:`SetAlignment(bool align) ` - Set memory buffer alignment (only take effect with 12-bit BitDepth). * - :ref:`Equals(object obj) ` - * - :ref:`operator BitmapFormat(int code) ` - Implicit cast from BitmapFormatTypeCode * - :ref:`operator==(BitmapFormat lhs, BitmapFormat rhs) ` - Check if two :ref:`BitmapFormat ` are identical * - :ref:`operator!=(BitmapFormat lhs, BitmapFormat rhs) ` - Check if two :ref:`BitmapFormat ` are different * - :ref:`operator int(BitmapFormat d) ` - Implicit cast bitmapFormat code to int