CreateEmptyDIB  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.]CreateEmptyDIB Width Height, XRes YRes BitCount IsWhite

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

                            Height                     Long                Height of the image. 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