Name | Description | |
---|---|---|
Clear | Clears the raster by setting all pixels to the specified color. | |
Convert | Overloaded. Returns a raster with the specified pixel format, using the current raster as a source. | |
ConvertToGrayscale | Converts the raster colors to grayscale. | |
CopyTo | Overloaded. Copies the raster to the specified raster. Converts to the target raster pixel format if necessary | |
CreateSubRaster | Creates a new raster as a portion of the current raster. | |
DeepClone | Creates a new raster with the same pixel data and properties as this one. | |
Deserialize | Deserializes the raster. | |
Encode | Overloaded. Encodes the raster to the specified image format. | |
FillRect | Fills a rectangle in the raster with the specified color. | |
FlipX | Creates a new raster by flipping the current raster horizontally. | |
FlipY | Creates a new raster by flipping the current raster vertically. | |
GetPixel | Gets the color of the pixel at the specified coordinates. | |
GetTransparentMargins | Gets the offsets from the raster rim that are fully transparent. | |
InvertBrightness | Inverts the brighness of the raster | |
InvertColors | Inverts the colors of the raster pixels. | |
IsSingleColor | Determines whether the raster contains only one color. | |
PixelsEqual | Compares the given rasters pixel by pixel and returns whether they are considered equal obeying the specified tolerance and maximum number of pixels that may be different. | |
RasterizePainting | Paints a 2D scene into a newly created raster with the specified dimensions. | |
Resize | Overloaded. Creates a new raster from this raster and resizes it to the given size. | |
RotateClockwise | Creates a new raster by rotating the current raster at 90 degrees clockwise. | |
RotateCounterClockwise | Creates a new raster by rotating the current raster at 90 degrees counterclockwise. | |
Serialize | Serializes the raster | |
SetPixel | Sets the color of the pixel at the specified coordinates. | |
TryGetUniformAlphaFromPixels | Attempts to obtain an uniform alpha value from the raster pixels. |