Ignore:
Timestamp:
Nov 28, 2012, 8:09:38 AM (12 years ago)
Author:
chronos
Message:
  • Added: Brief description for rest of available draw methods.
  • Added: Graphics32 method conditional compilation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GraphicTest/UDrawMethod.pas

    r454 r459  
    2727    StepDuration: TDateTime;
    2828    PaintObject: TPaintObject;
    29     TempBitmap: TBitmap;
    3029    FrameCounter: Integer;
    3130    FrameCounterStart: TDateTime;
     
    112111  Image.Parent := Parent;
    113112  Image.SetBounds(0, 0, Size.X, Size.Y);
     113  Image.Picture.Bitmap.PixelFormat := PixelFormat;
    114114  Image.Picture.Bitmap.SetSize(Size.X, Size.Y);
    115   Image.Picture.Bitmap.PixelFormat := PixelFormat;
    116115  Image.Show;
    117116end;
     
    195194procedure TDrawMethod.Init(Parent: TWinControl; Size: TPoint; PixelFormat: TPixelFormat);
    196195begin
    197   if (TempBitmap.Width <> Size.X) or (TempBitmap.Height <> Size.Y) then
    198     TempBitmap.SetSize(Size.X, Size.Y);
    199196end;
    200197
     
    206203constructor TDrawMethod.Create;
    207204begin
    208   TempBitmap := TBitmap.Create;
    209205  Description := TStringList.Create;
    210206end;
     
    213209begin
    214210  FreeAndNil(Description);
    215   FreeAndNil(TempBitmap);
    216   inherited Destroy;
     211  inherited;
    217212end;
    218213
Note: See TracChangeset for help on using the changeset viewer.