CreateEmptyDIBByMMAndPixel  Method

Description         This method creates an empty DIB. The DIB created can be 1, 8 or 24 bit per pixel. The DIB can be all white or all black depending on the last parameter. If you create a monochrome DIB the first item in the palette will be the black and the second item will be the white color. If you create an 8 bit per pixel DIB, the palette will contain 256 items in the palette. In this case the the first item in the palette will be (255, 255, 255), and the others will be zero. The horizontal and the vertical DPI values must be 50 and 9999 (DPI = pixel / inch).

Syntax                 [BiDIB.]CreateEmptyDIBByMMAndPixel WidthInMM HeightInMM, Width Height BitCount IsWhite

Remarks             WidthInMM          Long                Width of the image in millimeter. This value must be greater than 0.

                            HeightInMM         Long                Height of the image in millimeter. This value must be greater than 0.

                            Width                     Long                Width of the image in pixel. This value must be greater than 0.

                            Height                     Long                Height of the image in pixel. This value must be greater than 0.

                            BitCount                Short               Specifies the bitcount. This value is 1, 8 or 24.

                            IsWhite                   BOOL             If TRUE, the DIB will be white, otherwise FALSE.

 

See Also          DuplicateDIB Method, CreateEmptyDIB Method, CreateEmptyDIBByInchAndPixel Method, CreateEmptyDIBByInchAndDPI Method, CreateEmptyDIBByMMAndDPI Method