Method StretchBlit
StretchBlit(PointD, SizeD, Graphics, PointD, SizeD, RasterOperationMode, bool, PointD?, GraphicsUnit)
Copies from a source Graphics to this graphics possibly changing the scale. Unlike Blit(PointD, SizeD, Graphics, PointD, RasterOperationMode, bool, PointD?, GraphicsUnit), this method allows specifying different source and destination region sizes, meaning that it can stretch or shrink it while copying. The meaning of its other parameters is the same as with Blit(PointD, SizeD, Graphics, PointD, RasterOperationMode, bool, PointD?, GraphicsUnit). Sizes and positions are specified in pixels.
public override bool StretchBlit(PointD dstPt, SizeD dstSize, Graphics source, PointD srcPt, SizeD srcSize, RasterOperationMode rop = RasterOperationMode.Copy, bool useMask = false, PointD? srcPtMask = null, GraphicsUnit unit = GraphicsUnit.Dip)Parameters
- dstPtPointD
- Destination device context position. 
- dstSizeSizeD
- Size of destination area. 
- sourceGraphics
- Source device context. 
- srcPtPointD
- Source device context position. 
- srcSizeSizeD
- Size of source area to be copied. 
- ropRasterOperationMode
- Logical function to use. 
- useMaskbool
- If true, Blit does a transparent blit using the mask that is associated with the bitmap selected into the source device context. 
- srcPtMaskPointD?
- Source position on the mask. If it equals (-1, -1), - srcPtwill be assumed for the mask source position. Currently only implemented on Windows.
- unitGraphicsUnit
- GraphicsUnit that determines the unit of measure for the point and size parameters. 
Returns
Remarks
Notice that source coordinate srcPt is interpreted
using the current source DC coordinate system, i.e. the scale, origin position
and axis directions are taken into account when transforming them to
physical(pixel) coordinates.