Changeset 459 for GraphicTest/UDrawMethod.pas
- Timestamp:
- Nov 28, 2012, 8:09:38 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GraphicTest/UDrawMethod.pas
r454 r459 27 27 StepDuration: TDateTime; 28 28 PaintObject: TPaintObject; 29 TempBitmap: TBitmap;30 29 FrameCounter: Integer; 31 30 FrameCounterStart: TDateTime; … … 112 111 Image.Parent := Parent; 113 112 Image.SetBounds(0, 0, Size.X, Size.Y); 113 Image.Picture.Bitmap.PixelFormat := PixelFormat; 114 114 Image.Picture.Bitmap.SetSize(Size.X, Size.Y); 115 Image.Picture.Bitmap.PixelFormat := PixelFormat;116 115 Image.Show; 117 116 end; … … 195 194 procedure TDrawMethod.Init(Parent: TWinControl; Size: TPoint; PixelFormat: TPixelFormat); 196 195 begin 197 if (TempBitmap.Width <> Size.X) or (TempBitmap.Height <> Size.Y) then198 TempBitmap.SetSize(Size.X, Size.Y);199 196 end; 200 197 … … 206 203 constructor TDrawMethod.Create; 207 204 begin 208 TempBitmap := TBitmap.Create;209 205 Description := TStringList.Create; 210 206 end; … … 213 209 begin 214 210 FreeAndNil(Description); 215 FreeAndNil(TempBitmap); 216 inherited Destroy; 211 inherited; 217 212 end; 218 213
Note:
See TracChangeset
for help on using the changeset viewer.