Draws a specified area from a TBitmap image after scaling it to a specified area of the canvas.
DrawBitmap is implemented by the TCanvas descendants to draw a specified rectangle area from a TBitmap image. The drawing is made to a specified rectangle area of the canvas. Before drawing, it scales the source image to the size of destination area.
DrawBitmap does nothing if ABitmap is empty. DrawBitmap does not raise any errors in this case.
Namespace: RSGdiPlusGraphics
Delphi
|
public
procedure DrawBitmap(const ABitmap: TBitmap; const SrcRect, DstRect: TRectF; const AOpacity: Single;
const HighSpeed: Boolean = False);
|
Parameters
ABitmap
Type: TBitmap
Specifies the TBitmap.
SrcRect
Type: TRectF
Specifies the rectangle area of ABitmap to be scaled and drawn.
DstRect
Type: TRectF
Specifies the destination rectangle area where to draw the selection from ABitmap
AOpacity
Type: Single
Specifies the transparency to be applied to the selection of ABitmap.
HighSpeed
Type: Boolean
Specifies the interpolation mode to use if the selected area of ABitmap is scaled by the drawing operation.
Reference
•RSGdiPlusGraphics.TRSGPCanvas.FillPath(TRSGPPath,Single,TRSGPBrush) •RSGdiPlusGraphics.TRSGPCanvas.FillRect(TRectF,Single,Single,TRSGPCorners,Single,TRSGPBrush,TRSGPCornerType) •FillPolygon •RSGdiPlusGraphics.TRSGPCanvas.FillArc(TPointF,TPointF,Single,Single,Single,TRSGPBrush) •RSGdiPlusGraphics.TRSGPCanvas.FillText(TRectF,string,Single) •RSGdiPlusGraphics.TRSGPCanvas.DrawArc(TPointF,TPointF,Single,Single,Single,TRSGPPen) •RSGdiPlusGraphics.TRSGPCanvas.DrawEllipse(TRectF,Single,TRSGPPen) •RSGdiPlusGraphics.TRSGPCanvas.DrawLine(TPointF,TPointF,Single,TRSGPPen) •RSGdiPlusGraphics.TRSGPCanvas.DrawPath(TRSGPPath,Single,TRSGPPen) •DrawPolygon •RSGdiPlusGraphics.TRSGPCanvas.DrawRect(TRectF,Single,Single,TRSGPCorners,Single,TRSGPPen,TRSGPCornerType) •RSGdiPlusGraphics.TRSGPCanvas.DrawRectSides(TRectF,Single,Single,TRSCorners,Single,TRSSides,TRSGPPen,TRSCornerType) •TRSGPCanvas •RSGdiPlusGraphics |