Changeset 20 for branches/gbitmap/GPixmap.pas
- Timestamp:
- Dec 21, 2016, 3:49:27 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gbitmap/GPixmap.pas
r18 r20 53 53 FData: PByte; 54 54 FSize: TPoint; 55 FCanvas: TGCanvas<TGColor>; 55 56 function GetPixel(X, Y: Integer): TGColor; virtual; 56 57 function GetSize: TPoint; virtual; … … 60 61 procedure CheckLimits(X, Y: Integer); 61 62 public 62 Canvas: TGCanvas<TGColor>;63 63 constructor Create; 64 64 destructor Destroy; override; … … 67 67 procedure Fill(Func: TGGetColor); overload; 68 68 function GetDataSize: Int64; virtual; 69 property Canvas: TGCanvas<TGColor> read FCanvas; 69 70 property Pixels[X, Y: Integer]: TGColor read GetPixel write SetPixel; 70 71 property Size: TPoint read GetSize write SetSize; … … 120 121 constructor TGPixmap<TGColor>.Create; 121 122 begin 122 Canvas := TGCanvas<TGColor>.Create;123 Canvas.Bitmap := Self;123 FCanvas := TGCanvas<TGColor>.Create; 124 FCanvas.Bitmap := Self; 124 125 end; 125 126 … … 127 128 begin 128 129 Size := Point(0, 0); 130 FreeAndNil(FCanvas); 129 131 end; 130 132
Note:
See TracChangeset
for help on using the changeset viewer.