Class TGenericUniversalBitmap
Unit
Declaration
type generic TGenericUniversalBitmap<TPixel,TColorspace> = class(TCustomUniversalBitmap)
Description
Abstract class for a bitmap in a specific colorspace
Hierarchy
- TFPCustomImage
- TCustomUniversalBitmap
- TGenericUniversalBitmap
Overview
Methods
constructor Create(AWidth, AHeight: integer; const AColor: TPixel); virtual; |
|
function CreateBrushTexture(ABrushStyle: TBrushStyle; APatternColor, ABackgroundColor: TPixel; AWidth: integer = 8; AHeight: integer = 8; APenWidth: single = 1): TCustomUniversalBitmap; virtual; |
|
function Equals(const comp: TPixel): boolean; overload; |
|
function Equals(comp: TCustomUniversalBitmap): boolean; overload; |
|
function GetDifferenceBounds(ABitmap: TCustomUniversalBitmap): TRect; |
|
function GetPixel(x,y: int32or64): TPixel; inline; |
|
function GetPixelAddress(x, y: integer): PByte; override; |
|
function GetPixelCycle(x,y: int32or64): TPixel; inline; |
|
function NewBitmap(AWidth, AHeight: integer; const AColor: TPixel): TCustomUniversalBitmap; overload; virtual; |
|
class function DefaultColorspace: TColorspaceAny; override; |
|
function GetScanlineFast(y: integer): PPixel; inline; |
|
procedure DrawCheckers(ARect: TRect; const AColorEven,AColorOdd: TPixel; AGridWidth: integer = 8; AGridHeight: integer = 8; ADrawMode: TDrawMode = dmSet); virtual; |
|
procedure DrawLine(x1, y1, x2, y2: integer; const AColor: TPixel; ADrawLastPixel: boolean; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; virtual; |
|
procedure DrawLineAntialias(x1, y1, x2, y2: integer; const AColor1, AColor2: TPixel; ADashLen: integer; ADrawLastPixel: boolean; AAlpha: Word = 65535); overload; virtual; |
|
procedure DrawLineAntialias(x1, y1, x2, y2: integer; const AColor1, AColor2: TPixel; ADashLen: integer; var ADashPos: integer; ADrawLastPixel: boolean; AAlpha: Word = 65535); overload; virtual; |
|
procedure DrawLineAntialias(x1, y1, x2, y2: integer; const AColor: TPixel; ADrawLastPixel: boolean; AAlpha: Word = 65535); overload; virtual; |
|
procedure DrawLineAntialias(x1, y1, x2, y2: single; const AColor: TPixel; APenWidth: single); overload; virtual; |
|
procedure DrawLineAntialias(x1, y1, x2, y2: single; const AColor: TPixel; APenWidth: single; AClosedCap: boolean); overload; virtual; |
|
procedure DrawPath(APath: IBGRAPath; const AColor: TPixel; AWidth: single; APixelCenteredCoordinates: boolean = true); overload; virtual; |
|
procedure DrawPath(APath: IBGRAPath; const AMatrix: TAffineMatrix; const AColor: TPixel; AWidth: single; APixelCenteredCoordinates: boolean = true); overload; virtual; |
|
procedure DrawPathAliased(APath: IBGRAPath; const AColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; APixelCenteredCoordinates: boolean = true; AAlpha: Word = 65535); overload; |
|
procedure DrawPathAliased(APath: IBGRAPath; const AMatrix: TAffineMatrix; const AColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; APixelCenteredCoordinates: boolean = true; AAlpha: Word = 65535); overload; |
|
procedure DrawPixel(x,y: Int32or64; const AColor: TPixel); overload; virtual; |
|
procedure DrawPixel(x,y: Int32or64; const AColor: TPixel; ADrawMode: TDrawMode; AAlpha: Word); overload; virtual; |
|
procedure DrawPixel(x,y: Int32or64; const AColor: TPixel; ADrawMode: TDrawMode); overload; virtual; |
|
procedure DrawPixelF(x,y: single; const AColor: TPixel; ADrawMode: TDrawMode; AAlpha: Word = 65535); overload; virtual; |
|
procedure DrawPolygon(const points: array of TPoint; const AColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; |
|
procedure DrawPolygonAntialias(const points: array of TPoint; const AColor: TPixel; AAlpha: Word = 65535); overload; |
|
procedure DrawPolygonAntialias(const points: array of TPoint; const AColor1, AColor2: TPixel; ADashLen: integer; AAlpha: Word = 65535); overload; |
|
procedure DrawPolygonAntialias(const APoints: array of TPointF; const AColor: TPixel; APenWidth: single); overload; virtual; |
|
procedure DrawPolyLine(const points: array of TPoint; const AColor: TPixel; ADrawLastPixel: boolean; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; |
|
procedure DrawPolyLineAntialias(const APoints: array of TPointF; const AColor: TPixel; APenWidth: single; AClosedCap: boolean); overload; virtual; |
|
procedure DrawPolyLineAntialias(const APoints: array of TPointF; const AColor: TPixel; APenWidth: single); overload; virtual; |
|
procedure DrawPolyLineAntialias(const points: array of TPoint; const AColor1, AColor2: TPixel; ADashLen: integer; ADrawLastPixel: boolean; AAlpha: Word = 65535); overload; |
|
procedure DrawPolyLineAntialias(const points: array of TPoint; const AColor: TPixel; ADrawLastPixel: boolean; AAlpha: Word = 65535); overload; |
|
procedure DrawPolyLineAntialiasAutocycle(const APoints: array of TPointF; const AColor: TPixel; APenWidth: single); overload; virtual; |
|
procedure Ellipse(const AOrigin, AXAxis, AYAxis: TPointF; const AColor: TPixel; AWidth: single; AMode: TDrawMode; AAlpha: Word = 65535); overload; virtual; |
|
procedure Ellipse(x, y, rx, ry: single; const AColor: TPixel; AWidth: single; AMode: TDrawMode; AAlpha: Word = 65535); overload; virtual; |
|
procedure EllipseAntialias(x, y, rx, ry: single; const AColor: TPixel; AWidth: single); overload; virtual; |
|
procedure EllipseAntialias(const AOrigin, AXAxis, AYAxis: TPointF; const AColor: TPixel; AWidth: single); overload; virtual; |
|
procedure EllipseInRect(ARect: TRect; const ABorderColor, AFillColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; virtual; |
|
procedure EllipseInRect(ARect: TRect; const ABorderColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; virtual; |
|
procedure Fill(const AColor: TPixel); overload; virtual; |
|
procedure Fill(const AColor: TPixel; AMode : TDrawMode; AAlpha : Word = 65535); overload; virtual; |
|
procedure FillEllipseAntialias(x, y, rx, ry: single; const AColor: TPixel); overload; virtual; |
|
procedure FillEllipseAntialias(const AOrigin, AXAxis, AYAxis: TPointF; const AColor: TPixel); overload; virtual; |
|
procedure FillEllipseInRect(ARect: TRect; const AFillColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; virtual; |
|
procedure FillMask(x,y: integer; AMask: TCustomUniversalBitmap; const AColor: TPixel); overload; virtual; |
|
procedure FillMask(x,y: integer; AMask: TCustomUniversalBitmap; const AColor: TPixel; ADrawMode: TDrawMode); overload; virtual; |
|
procedure FillPath(APath: IBGRAPath; const AMatrix: TAffineMatrix; const AColor: TPixel; APixelCenteredCoordinates: boolean = true); overload; virtual; |
|
procedure FillPath(APath: IBGRAPath; const AColor: TPixel; APixelCenteredCoordinates: boolean = true); overload; virtual; |
|
procedure FillPathAliased(APath: IBGRAPath; const AFillColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; APixelCenteredCoordinates: boolean = true; AAlpha: Word = 65535); overload; |
|
procedure FillPathAliased(APath: IBGRAPath; const AMatrix: TAffineMatrix; const AFillColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; APixelCenteredCoordinates: boolean = true; AAlpha: Word = 65535); overload; |
|
procedure FillPoly(const APoints: array of TPointF; const AFillColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; APixelCenteredCoordinates: boolean = true; AAlpha: Word = 65535); overload; virtual; |
|
procedure FillPolyAntialias(const APoints: array of TPointF; const AColor: TPixel; APixelCenteredCoordinates: boolean = true); overload; virtual; |
|
procedure FillRect(const ARect: TRect; const AColor: TPixel; ADrawMode: TDrawMode = dmSet; AAlpha: Word = 65535); overload; virtual; |
|
procedure FillRect(ALeft, ATop, ARight, ABottom: integer; const AColor: TPixel; ADrawMode: TDrawMode = dmSet; AAlpha: Word = 65535); overload; virtual; |
|
procedure FillRectAntialias(x, y, x2, y2: single; const AColor: TPixel; APixelCenteredCoordinates: boolean = true); overload; virtual; |
|
procedure FillRectAntialias(const ARectF: TRectF; const AColor: TPixel; APixelCenteredCoordinates: boolean = true); overload; virtual; |
|
procedure FillRoundRect(X1, Y1, X2, Y2: integer; DX, DY: integer; const AFillColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; virtual; |
|
procedure FillRoundRectAntialias(x, y, x2, y2, rx, ry: single; const AColor: TPixel; AOptions: TRoundRectangleOptions = []; APixelCenteredCoordinates: boolean = true); overload; virtual; |
|
procedure FillShape(AShape: TBGRACustomFillInfo; const AFillColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; virtual; |
|
procedure GetPixelCycleIndirect(x,y: int32or64; AColor: pointer); override; |
|
procedure GetPixelIndirect(x,y: int32or64; AColor: pointer); override; |
|
procedure HorizLine(x, y, x2: int32or64; const AColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; virtual; |
|
class procedure IdleBrush(out ABrush: TUniversalBrush); virtual; |
|
procedure Rectangle(x, y, x2, y2: integer; const ABorderColor, AFillColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; virtual; |
|
procedure Rectangle(const ARect: TRect; const ABorderColor, AFillColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; virtual; |
|
procedure Rectangle(const ARect: TRect; const AColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; virtual; |
|
procedure Rectangle(x, y, x2, y2: integer; const AColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; virtual; |
|
procedure RectangleAntialias(x, y, x2, y2: single; const AColor: TPixel; AWidth: single); overload; virtual; |
|
procedure ReplaceColor(const ABefore, AAfter: TPixel); overload; virtual; |
|
procedure ReplaceColor(ARect: TRect; const ABefore, AAfter: TPixel); overload; virtual; |
|
procedure ReplaceTransparent(ARect: TRect; const AAfter: TPixel); overload; virtual; |
|
procedure ReplaceTransparent(const AAfter: TPixel); overload; virtual; |
|
procedure RoundRect(X1, Y1, X2, Y2: integer; DX, DY: integer; const ABorderColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; virtual; |
|
procedure RoundRect(X1, Y1, X2, Y2: integer; DX, DY: integer; const ABorderColor, AFillColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; virtual; |
|
procedure SetHorizLine(x, y, x2: int32or64; const AColor: TPixel); virtual; |
|
procedure SetPixel(x,y: int32or64; const AColor: TPixel); overload; virtual; |
|
procedure SetPixelIndirect(x,y: int32or64; AColor: pointer); override; |
|
procedure SetVertLine(x, y, y2: int32or64; const AColor: TPixel); virtual; |
|
class procedure SolidBrush(out ABrush: TUniversalBrush; const AColor: TPixel; ADrawMode: TDrawMode = dmDrawWithTransparency); virtual; |
|
procedure SolidBrushIndirect(out ABrush: TUniversalBrush; AColor: Pointer; ADrawMode: TDrawMode = dmDrawWithTransparency); override; |
|
procedure VertLine(x, y, y2: int32or64; const AColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; virtual; |
|
procedure Init; override; |
|
procedure InternalCopyPixels(ASource,ADest: PByte; ASourceStride,ADestStride: PtrInt; ACount: integer); override; |
|
procedure InternalSetPixels(ASource,ADest: PByte; ADestStride: PtrInt; ACount: integer); override; |
|
procedure InternalSwapPixels(ABuf1,ABuf2: PByte; AStride1,AStride2: PtrInt; ACount: integer); override; |
Properties
property Data: PPixel read GetDataPtr; |
|
property ScanLine[y: integer]: PPixel Read GetScanLine; |
Description
Methods
constructor Create(AWidth, AHeight: integer; const AColor: TPixel); virtual; |
|
Creates an image of dimensions AWidth and AHeight and fills it with Color |
function CreateBrushTexture(ABrushStyle: TBrushStyle; APatternColor, ABackgroundColor: TPixel; AWidth: integer = 8; AHeight: integer = 8; APenWidth: single = 1): TCustomUniversalBitmap; virtual; |
|
Creates a brush texture with a specified style, pattern color, background color, dimensions, and pen width.
Example using a diagonal cross texture to fill shapes on a form:
procedure TForm1.FormPaint(Sender: TObject); var image,tex: TBGRABitmap; c: TBGRAPixel; x,y,rx,ry: single; begin image := TBGRABitmap.Create(ClientWidth,ClientHeight,ColorToBGRA(ColorToRGB(clBtnFace))); c := ColorToBGRA(ColorToRGB(clWindowText)); //ellipse coordinates x := 150; y := 100; rx := 100; ry := 50; //loads a "diagcross" brush with white pattern and orange background tex := image.CreateBrushTexture(bsDiagCross,BGRAWhite,BGRA(255,192,0)) as TBGRABitmap; image.FillEllipseAntialias(x,y,rx-0.5,ry-0.5,tex); image.EllipseAntialias(x,y,rx,ry,c,1); //draw outline image.RoundRectAntialias(x-rx-10,y-ry-10,x+rx+10,y+ry+10,20,20,c,11); image.RoundRectAntialias(x-rx-10,y-ry-10,x+rx+10,y+ry+10,20,20,tex,9); tex.Free; image.Draw(Canvas,0,0,True); image.free; end; |
function Equals(const comp: TPixel): boolean; overload; |
|
This item has no description. |
function Equals(comp: TCustomUniversalBitmap): boolean; overload; |
|
This item has no description. |
function GetDifferenceBounds(ABitmap: TCustomUniversalBitmap): TRect; |
|
This item has no description. |
function GetPixel(x,y: int32or64): TPixel; inline; |
|
This item has no description. |
function GetPixelAddress(x, y: integer): PByte; override; |
|
This item has no description. Showing description inherited from TCustomUniversalBitmap.GetPixelAddress. Returns the address of a pixel. /!\ Does not check if the coordinates are valid. |
function GetPixelCycle(x,y: int32or64): TPixel; inline; |
|
This item has no description. |
function NewBitmap(AWidth, AHeight: integer; const AColor: TPixel): TCustomUniversalBitmap; overload; virtual; |
|
This item has no description. |
class function DefaultColorspace: TColorspaceAny; override; |
|
This item has no description. |
function GetScanlineFast(y: integer): PPixel; inline; |
|
ensure colorspace |
procedure DrawCheckers(ARect: TRect; const AColorEven,AColorOdd: TPixel; AGridWidth: integer = 8; AGridHeight: integer = 8; ADrawMode: TDrawMode = dmSet); virtual; |
|
This item has no description. |
procedure DrawLine(x1, y1, x2, y2: integer; const AColor: TPixel; ADrawLastPixel: boolean; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; virtual; |
|
This item has no description. |
procedure DrawLineAntialias(x1, y1, x2, y2: integer; const AColor: TPixel; ADrawLastPixel: boolean; AAlpha: Word = 65535); overload; virtual; |
|
This item has no description. |
procedure DrawLineAntialias(x1, y1, x2, y2: single; const AColor: TPixel; APenWidth: single); overload; virtual; |
|
These functions use the current pen style/cap/join. The parameter APenWidth specifies the width of the line and the base unit for dashes. See coordinate system.
|
procedure DrawLineAntialias(x1, y1, x2, y2: single; const AColor: TPixel; APenWidth: single; AClosedCap: boolean); overload; virtual; |
|
This item has no description. |
procedure DrawPath(APath: IBGRAPath; const AColor: TPixel; AWidth: single; APixelCenteredCoordinates: boolean = true); overload; virtual; |
|
This item has no description. |
procedure DrawPath(APath: IBGRAPath; const AMatrix: TAffineMatrix; const AColor: TPixel; AWidth: single; APixelCenteredCoordinates: boolean = true); overload; virtual; |
|
This item has no description. |
procedure DrawPathAliased(APath: IBGRAPath; const AColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; APixelCenteredCoordinates: boolean = true; AAlpha: Word = 65535); overload; |
|
This item has no description. |
procedure DrawPathAliased(APath: IBGRAPath; const AMatrix: TAffineMatrix; const AColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; APixelCenteredCoordinates: boolean = true; AAlpha: Word = 65535); overload; |
|
This item has no description. |
procedure DrawPixel(x,y: Int32or64; const AColor: TPixel); overload; virtual; |
|
Draws a pixel with gamma correction at (x, y). Pixel is supplied in sRGB colorspace |
procedure DrawPixel(x,y: Int32or64; const AColor: TPixel; ADrawMode: TDrawMode; AAlpha: Word); overload; virtual; |
|
This item has no description. |
procedure DrawPixel(x,y: Int32or64; const AColor: TPixel; ADrawMode: TDrawMode); overload; virtual; |
|
This item has no description. |
procedure DrawPixelF(x,y: single; const AColor: TPixel; ADrawMode: TDrawMode; AAlpha: Word = 65535); overload; virtual; |
|
This item has no description. |
procedure DrawPolygon(const points: array of TPoint; const AColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; |
|
This item has no description. |
procedure DrawPolygonAntialias(const points: array of TPoint; const AColor: TPixel; AAlpha: Word = 65535); overload; |
|
This item has no description. |
procedure DrawPolygonAntialias(const points: array of TPoint; const AColor1, AColor2: TPixel; ADashLen: integer; AAlpha: Word = 65535); overload; |
|
This item has no description. |
procedure DrawPolygonAntialias(const APoints: array of TPointF; const AColor: TPixel; APenWidth: single); overload; virtual; |
|
Draws a polygon using current pen style/cap/join. The polygon is always closed. You don't need to set the last point to be the same as the first point |
procedure DrawPolyLine(const points: array of TPoint; const AColor: TPixel; ADrawLastPixel: boolean; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; |
|
This item has no description. |
procedure DrawPolyLineAntialias(const APoints: array of TPointF; const AColor: TPixel; APenWidth: single; AClosedCap: boolean); overload; virtual; |
|
Draws a polyline using current pen style/cap/join. Closed specifies if the end of the line is roundly closed. If it is not closed, a space is left so that the next line can fit |
procedure DrawPolyLineAntialias(const APoints: array of TPointF; const AColor: TPixel; APenWidth: single); overload; virtual; |
|
Draws a polyline using current pen style/cap/join |
procedure DrawPolyLineAntialias(const points: array of TPoint; const AColor1, AColor2: TPixel; ADashLen: integer; ADrawLastPixel: boolean; AAlpha: Word = 65535); overload; |
|
This item has no description. |
procedure DrawPolyLineAntialias(const points: array of TPoint; const AColor: TPixel; ADrawLastPixel: boolean; AAlpha: Word = 65535); overload; |
|
This item has no description. |
procedure DrawPolyLineAntialiasAutocycle(const APoints: array of TPointF; const AColor: TPixel; APenWidth: single); overload; virtual; |
|
Draws a polyline using current pen style/cap/join. The last point considered as a join with the first point if it has the same coordinate |
procedure Ellipse(const AOrigin, AXAxis, AYAxis: TPointF; const AColor: TPixel; AWidth: single; AMode: TDrawMode; AAlpha: Word = 65535); overload; virtual; |
|
This item has no description. |
procedure Ellipse(x, y, rx, ry: single; const AColor: TPixel; AWidth: single; AMode: TDrawMode; AAlpha: Word = 65535); overload; virtual; |
|
Draws an ellipse without antialising. rx is the horizontal radius and ry the vertical radius |
procedure EllipseAntialias(x, y, rx, ry: single; const AColor: TPixel; AWidth: single); overload; virtual; |
|
Draws an ellipse with antialising. rx is the horizontal radius and ry the vertical radius |
procedure EllipseAntialias(const AOrigin, AXAxis, AYAxis: TPointF; const AColor: TPixel; AWidth: single); overload; virtual; |
|
This item has no description. |
procedure EllipseInRect(ARect: TRect; const ABorderColor, AFillColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; virtual; |
|
This item has no description. |
procedure EllipseInRect(ARect: TRect; const ABorderColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; virtual; |
|
This item has no description. |
procedure Fill(const AColor: TPixel); overload; virtual; |
|
This item has no description. |
procedure Fill(const AColor: TPixel; AMode : TDrawMode; AAlpha : Word = 65535); overload; virtual; |
|
This item has no description. |
procedure FillEllipseAntialias(x, y, rx, ry: single; const AColor: TPixel); overload; virtual; |
|
This item has no description. |
procedure FillEllipseAntialias(const AOrigin, AXAxis, AYAxis: TPointF; const AColor: TPixel); overload; virtual; |
|
This item has no description. |
procedure FillEllipseInRect(ARect: TRect; const AFillColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; virtual; |
|
This item has no description. |
procedure FillMask(x,y: integer; AMask: TCustomUniversalBitmap; const AColor: TPixel); overload; virtual; |
|
This item has no description. |
procedure FillMask(x,y: integer; AMask: TCustomUniversalBitmap; const AColor: TPixel; ADrawMode: TDrawMode); overload; virtual; |
|
This item has no description. |
procedure FillPath(APath: IBGRAPath; const AMatrix: TAffineMatrix; const AColor: TPixel; APixelCenteredCoordinates: boolean = true); overload; virtual; |
|
This item has no description. |
procedure FillPath(APath: IBGRAPath; const AColor: TPixel; APixelCenteredCoordinates: boolean = true); overload; virtual; |
|
This item has no description. |
procedure FillPathAliased(APath: IBGRAPath; const AFillColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; APixelCenteredCoordinates: boolean = true; AAlpha: Word = 65535); overload; |
|
This item has no description. |
procedure FillPathAliased(APath: IBGRAPath; const AMatrix: TAffineMatrix; const AFillColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; APixelCenteredCoordinates: boolean = true; AAlpha: Word = 65535); overload; |
|
This item has no description. |
procedure FillPoly(const APoints: array of TPointF; const AFillColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; APixelCenteredCoordinates: boolean = true; AAlpha: Word = 65535); overload; virtual; |
|
This item has no description. |
procedure FillPolyAntialias(const APoints: array of TPointF; const AColor: TPixel; APixelCenteredCoordinates: boolean = true); overload; virtual; |
|
——————————– antialias fill ——————————————— |
procedure FillRect(const ARect: TRect; const AColor: TPixel; ADrawMode: TDrawMode = dmSet; AAlpha: Word = 65535); overload; virtual; |
|
This item has no description. |
procedure FillRect(ALeft, ATop, ARight, ABottom: integer; const AColor: TPixel; ADrawMode: TDrawMode = dmSet; AAlpha: Word = 65535); overload; virtual; |
|
This item has no description. |
procedure FillRectAntialias(x, y, x2, y2: single; const AColor: TPixel; APixelCenteredCoordinates: boolean = true); overload; virtual; |
|
This item has no description. |
procedure FillRectAntialias(const ARectF: TRectF; const AColor: TPixel; APixelCenteredCoordinates: boolean = true); overload; virtual; |
|
This item has no description. |
procedure FillRoundRect(X1, Y1, X2, Y2: integer; DX, DY: integer; const AFillColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; virtual; |
|
This item has no description. |
procedure FillRoundRectAntialias(x, y, x2, y2, rx, ry: single; const AColor: TPixel; AOptions: TRoundRectangleOptions = []; APixelCenteredCoordinates: boolean = true); overload; virtual; |
|
Fills a rounded rectangle with antialiasing. The corners have an elliptical radius of rx and ry. options specifies how to draw the corners. |
procedure FillShape(AShape: TBGRACustomFillInfo; const AFillColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; virtual; |
|
This item has no description. |
procedure GetPixelCycleIndirect(x,y: int32or64; AColor: pointer); override; |
|
This item has no description. |
procedure GetPixelIndirect(x,y: int32or64; AColor: pointer); override; |
|
This item has no description. |
procedure HorizLine(x, y, x2: int32or64; const AColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; virtual; |
|
This item has no description. |
class procedure IdleBrush(out ABrush: TUniversalBrush); virtual; |
|
This item has no description. |
procedure Rectangle(x, y, x2, y2: integer; const ABorderColor, AFillColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; virtual; |
|
This item has no description. |
procedure Rectangle(const ARect: TRect; const ABorderColor, AFillColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; virtual; |
|
This item has no description. |
procedure Rectangle(const ARect: TRect; const AColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; virtual; |
|
This item has no description. |
procedure Rectangle(x, y, x2, y2: integer; const AColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; virtual; |
|
This item has no description. |
procedure RectangleAntialias(x, y, x2, y2: single; const AColor: TPixel; AWidth: single); overload; virtual; |
|
Draw a rectangle using current pen with antialiasing.
Example drawing a rectangle on a form:
procedure TForm1.FormPaint(Sender: TObject); var image: TBGRABitmap; c: TBGRAPixel; begin image := TBGRABitmap.Create(ClientWidth, ClientHeight, clBtnFace); c := clWindowText; image.RectangleAntialias(80,80,300,200, c, 50); image.Draw(Canvas,0,0,True); image.free; end; |
procedure ReplaceColor(const ABefore, AAfter: TPixel); overload; virtual; |
|
This item has no description. |
procedure ReplaceColor(ARect: TRect; const ABefore, AAfter: TPixel); overload; virtual; |
|
This item has no description. |
procedure ReplaceTransparent(ARect: TRect; const AAfter: TPixel); overload; virtual; |
|
This item has no description. |
procedure ReplaceTransparent(const AAfter: TPixel); overload; virtual; |
|
This item has no description. |
procedure RoundRect(X1, Y1, X2, Y2: integer; DX, DY: integer; const ABorderColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; virtual; |
|
This item has no description. |
procedure RoundRect(X1, Y1, X2, Y2: integer; DX, DY: integer; const ABorderColor, AFillColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; virtual; |
|
This item has no description. |
procedure SetHorizLine(x, y, x2: int32or64; const AColor: TPixel); virtual; |
|
Replaces the content of the pixels at line y and at columns x to x2 included, using specified color |
procedure SetPixel(x,y: int32or64; const AColor: TPixel); overload; virtual; |
|
This item has no description. |
procedure SetPixelIndirect(x,y: int32or64; AColor: pointer); override; |
|
optimized |
procedure SetVertLine(x, y, y2: int32or64; const AColor: TPixel); virtual; |
|
Replaces a vertical line at column x and at row y to y2 |
class procedure SolidBrush(out ABrush: TUniversalBrush; const AColor: TPixel; ADrawMode: TDrawMode = dmDrawWithTransparency); virtual; |
|
This item has no description. |
procedure SolidBrushIndirect(out ABrush: TUniversalBrush; AColor: Pointer; ADrawMode: TDrawMode = dmDrawWithTransparency); override; |
|
This item has no description. |
procedure VertLine(x, y, y2: int32or64; const AColor: TPixel; AMode : TDrawMode = dmDrawWithTransparency; AAlpha: Word = 65535); overload; virtual; |
|
This item has no description. |
procedure Init; override; |
|
This item has no description. Showing description inherited from TCustomUniversalBitmap.Init. ReadWriteConfig: TBGRAReadWriteConfig; |
procedure InternalCopyPixels(ASource,ADest: PByte; ASourceStride,ADestStride: PtrInt; ACount: integer); override; |
|
typed function |
procedure InternalSetPixels(ASource,ADest: PByte; ADestStride: PtrInt; ACount: integer); override; |
|
This item has no description. |
procedure InternalSwapPixels(ABuf1,ABuf2: PByte; AStride1,AStride2: PtrInt; ACount: integer); override; |
|
This item has no description. |
Properties
property Data: PPixel read GetDataPtr; |
|
Line order can change, so if you access directly to bitmap |
property ScanLine[y: integer]: PPixel Read GetScanLine; |
|
Returns the address of the left-most pixel of any line. The parameter y ranges from 0 to Height-1 |