write Pixels
Copies Rect of pixels from the src Bitmap to the Surface.
Source Rect corners are (0, 0) and (src.width(), src.height()). Destination Rect corners are (dstX, dstY) and (dstX + Surface width(), dstY + Surface height()).
Copies each readable pixel intersecting both rectangles, without scaling, converting to Surface colorType() and Surface alphaType() if required.
Parameters
bitmap
storage for pixels to copy to Surface
x
x-axis position relative to Surface to begin copy; may be negative
y
y-axis position relative to Surface to begin copy; may be negative