Platform eXtended Library (PXL)Units Class Hierarchy Classes, Interfaces, Objects and Records Types Variables Constants Functions and Procedures Identifiers |
Class TConceptualPixelSurface
Unit
PXL.Surfaces
Declaration
type TConceptualPixelSurface = class abstract(TObject)
Description
Conceptual surface that provide means of reading, writing and drawing individual pixels.
Hierarchy
- TObject
- TConceptualPixelSurface
Overview
Methods
Properties
Description
Methods
|
function GetPixel(X, Y: Integer): TIntColor; virtual; abstract; |
Returns pixel located at specified coordinates. This also includes a sanity check for pixel coordinates to be within valid range. If coordinates are outside of valid range, zero should be returned.
|
|
function GetPixelUnsafe(X, Y: Integer): TIntColor; virtual; abstract; |
Returns pixel located at specified coordinates similarly to GetPixel, but without sanity check for increased performance.
|
|
procedure DrawPixel(const X, Y: Integer; const Color: TIntColor); overload; virtual; |
Draws a single pixel at specified coordinates and color with alpha-blending. It also does a sanity check for specified coordinates and if they are outside of valid range, does nothing.
|
|
procedure DrawPixel(const Position: TPoint2i; const Color: TIntColor); overload; inline; |
Draws a single pixel at specified position and color with alpha-blending. It also does a sanity check for specified position and if it is outside of valid range, does nothing.
|
|
procedure DrawPixelUnsafe(const X, Y: Integer; const Color: TIntColor); overload; |
Draws a single pixel at specified coordinates similarly to DrawPixel, but without sanity check for increased performance.
|
|
procedure DrawPixelUnsafe(const Position: TPoint2i; const Color: TIntColor); overload; inline; |
Draws a single pixel at specified position similarly to DrawPixel, but without sanity check for increased performance.
|
|
procedure SetPixel(X, Y: Integer; const Color: TIntColor); virtual; abstract; |
Sets pixel located at specified coordinates. This also includes a sanity check for pixel coordinates to be within valid range. If coordinates are outside of valid range, nothing should be done.
|
|
procedure SetPixelUnsafe(X, Y: Integer; const Color: TIntColor); virtual; abstract; |
Sets pixel located at specified coordinates similarly to GetPixel, but without sanity check for increased performance.
|
Properties
Copyright © 2000 - 2017 Yuriy Kotsarenko. Help files generated by PasDoc.
|