writesoli.blogg.se

Stretchblt vs copyimage
Stretchblt vs copyimage












The iUsage parameter must be one of the following values. Specifies whether the bmiColors member of the BITMAPINFO structure was provided and, if so, whether bmiColors contains explicit red, green, blue (RGB) values or indexes. For more information, see the Remarks section.Ī pointer to a BITMAPINFO structure that contains information about the DIB. The height, in pixels, of the source rectangle in the image.Ī pointer to the image bits, which are stored as an array of bytes. The width, in pixels, of the source rectangle in the image. The y-coordinate, in pixels, of the source rectangle in the image.

stretchblt vs copyimage

The x-coordinate, in pixels, of the source rectangle in the image. The height, in logical units, of the destination rectangle. The width, in logical units, of the destination rectangle. The y-coordinate, in logical units, of the upper-left corner of the destination rectangle.

stretchblt vs copyimage

The x-coordinate, in logical units, of the upper-left corner of the destination rectangle.

stretchblt vs copyimage

Syntax int StretchDIBits(Ī handle to the destination device context. If the destination rectangle is smaller than the source rectangle, this function compresses the rows and columns by using the specified raster operation. If the destination rectangle is larger than the source rectangle, this function stretches the rows and columns of color data to fit the destination rectangle. The StretchDIBits function copies the color data for a rectangle of pixels in a DIB, JPEG, or PNG image to the specified destination rectangle.














Stretchblt vs copyimage