Bitblt function windows
That's an interesting approach. The three BitBlt calls are all directed to the destination. I'm seeing it as something like this:. I'll accept my own answer since I was looking for that, but this is interesting info. I think I won't need to change the post to General Discussion since I feel it's already solved.
But still, thanks for the info. Ask a question. Quick access. Search related threads. Remove From My Forums. Answered by:.
The StretchBlt function copies a bitmap from a source rectangle into a destination rectangle, stretching or compressing the bitmap to fit the dimensions of the destination rectangle, if necessary. The system stretches or compresses the bitmap according to the stretching mode currently set in the destination device context. The raster operation to be performed.
Raster operation codes define how the system combines colors in output operations that involve a brush, a source bitmap, and a destination bitmap. StretchBlt stretches or compresses the source bitmap in memory and then copies the result to the destination rectangle.
The color data for pattern or destination pixels is merged after the stretching or compression occurs. When an enhanced metafile is being recorded, an error occurs and the function returns FALSE if the source device context identifies an enhanced-metafile device context. Antialias; g1. DrawLine new Pen Color. Black, 2 , 10, 10, , 10 ; g1. Black, 2 , 10, 10, 10, , ; g1. FillRectangle Brushes. Blue, 30, 30, 70, 70 ; g1. DashedDownwardDiagonal, Color.
Red, Color. Width, this. GetHdc ; BitBlt hdc2, 0, 0, this. Download Microsoft Edge More info. Contents Exit focus mode. BitBlt function wingdi. Please rate your experience Yes No. Any additional feedback? In this article. Fills the destination rectangle using the color associated with index 0 in the physical palette. This color is black for the default physical palette.
Includes any windows that are layered on top of your window in the resulting image. By default, the image only contains your window.
0コメント