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

◆ copy_from_graphics() [3/4]

void xtd::drawing::graphics::copy_from_graphics ( const graphics source,
int32  source_x,
int32  source_y,
int32  destination_x,
int32  destination_y,
const xtd::drawing::size block_region_size 
)

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

Parameters
sourceThe drawing surface of the xtd::drawing::graphics source.
source_xThe x-coordinate of the point at the upper-left corner of the source rectangle.
source_yThe y-coordinate of the point at the upper-left corner of the source rectangle.
destination_xThe x-coordinate of the point at the upper-left corner of the destination rectangle.
destination_yThe y-coordinate of the point at the upper-left corner of the destination rectangle.
block_region_sizeThe size of the area to be transferred.
Remarks
The xtd::drawing::graphics::copy_from_graphics methods are useful for layering one image on top of another. To specify how the source and destination colors are blended, use one of the xtd::drawing::graphics::copy_from_screen methods that takes a xtd::drawing::graphics::copy_pixel_operation parameter.