Changeset 33 for trunk/Packages/FastGraphics/UGGraphics.pas
- Timestamp:
- Jan 5, 2017, 11:48:36 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/FastGraphics/UGGraphics.pas
r31 r33 203 203 PixelPtrMin: PInteger; 204 204 PixelRowPtr: PInteger; 205 P: TPixelFormat;206 205 RawImage: TRawImage; 207 206 BytePerPixel: Integer; … … 218 217 for X := Rect.Left to Rect.Right - 1 do begin 219 218 if (X >= 0) and (X < FSize.X) and (Y >= 0) and (Y < FSize.Y) and 220 (PixelPtr < PixelPtrMax) and (PixelPtr > PixelPtrMin) then219 (PixelPtr < PixelPtrMax) and (PixelPtr >= PixelPtrMin) then begin 221 220 PixelPtr^ := ColorConvertFunc(Pixels[X, Y]); 221 end; 222 222 Inc(PByte(PixelPtr), BytePerPixel); 223 224 223 end; 225 224 Inc(PByte(PixelRowPtr), RawImage.Description.BytesPerLine);
Note:
See TracChangeset
for help on using the changeset viewer.