xtd 0.2.0
Loading...
Searching...
No Matches

◆ copy_from_screen() [2/4]

void xtd::drawing::graphics::copy_from_screen ( const xtd::drawing::point upper_left_source,
const xtd::drawing::point upper_left_destination,
const xtd::drawing::size block_region_size,
xtd::drawing::copy_pixel_operation  copy_pixel_operation 
)

Performs a bit-block transfer of color data, corresponding to a rectangle of pixels, from the screen to the drawing surface of the xtd::drawing::graphics.

Parameters
upper_left_sourceThe point at the upper-left corner of the source rectangle.
upper_left_destinationThe point at the upper-left corner of the destination rectangle.
block_region_sizeThe size of the area to be transferred.
copy_pixel_operationOne of the xtd::drawing::graphics::copy_pixel_operation values.
Remarks
The xtd::drawing::graphics::copy_from_screen methods are useful for layering one image on top of another. The xtd::drawing::copy_pixel_operation parameter allows you to specify if and how the source colors should be blended with the colors in the destination area.