CreateEmptyDIBByInchAndDPI  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.

Syntax                 [BiDIB.]CreateEmptyDIBByInchAndDPI WidthInInch HeightInInch, XRes YRes BitCount IsWhite

Remarks             WidthInInch          Float                Width of the image in inch. This value must be greater than 0.

                            HeightInInch         Float                Height of the image in inch. This value must be greater than 0.

                            XRes                       Short               Horizontal resolution. This value must be between 50 and 9999.

                            YRes                       Short               Vertical resolution. This value must be between 50 and 9999.

                            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, CreateEmptyDIBByMMAndDPI Method, CreateEmptyDIBByMMAndPixel Method