Ignore:
Timestamp:
Jan 5, 2017, 11:48:36 PM (8 years ago)
Author:
chronos
Message:
  • Added: Remember last used image size and color format.
  • Added: Automatically create blank image.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/FastGraphics/UGGraphics.pas

    r31 r33  
    203203  PixelPtrMin: PInteger;
    204204  PixelRowPtr: PInteger;
    205   P: TPixelFormat;
    206205  RawImage: TRawImage;
    207206  BytePerPixel: Integer;
     
    218217      for X := Rect.Left to Rect.Right - 1 do begin
    219218        if (X >= 0) and (X < FSize.X) and (Y >= 0) and (Y < FSize.Y) and
    220         (PixelPtr < PixelPtrMax) and (PixelPtr > PixelPtrMin) then
     219        (PixelPtr < PixelPtrMax) and (PixelPtr >= PixelPtrMin) then begin
    221220          PixelPtr^ := ColorConvertFunc(Pixels[X, Y]);
     221        end;
    222222        Inc(PByte(PixelPtr), BytePerPixel);
    223 
    224223      end;
    225224      Inc(PByte(PixelRowPtr), RawImage.Description.BytesPerLine);
Note: See TracChangeset for help on using the changeset viewer.