- Timestamp:
- May 21, 2020, 8:17:38 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/Packages/CevoComponents/UPixelPointer.pas
r210 r246 27 27 BytesPerPixel: Integer; 28 28 BytesPerLine: Integer; 29 procedure NextLine; inline; // Move pointer to start of new base line 29 procedure NextLine; inline; // Move pointer to start of next line 30 procedure PreviousLine; inline; // Move pointer to start of previous line 30 31 procedure NextPixel; inline; // Move pointer to next pixel 32 procedure PreviousPixel; inline; // Move pointer to previous pixel 31 33 procedure SetXY(X, Y: Integer); inline; // Set pixel position relative to base 32 34 procedure SetX(X: Integer); inline; // Set horizontal pixel position relative to base … … 47 49 end; 48 50 51 procedure TPixelPointer.PreviousLine; 52 begin 53 Line := Pointer(Line) - BytesPerLine; 54 Pixel := Line; 55 end; 56 49 57 procedure TPixelPointer.NextPixel; inline; 50 58 begin 51 59 Pixel := Pointer(Pixel) + BytesPerPixel; 60 end; 61 62 procedure TPixelPointer.PreviousPixel; 63 begin 64 Pixel := Pointer(Pixel) - BytesPerPixel; 52 65 end; 53 66
Note:
See TracChangeset
for help on using the changeset viewer.