SystemEX  Lacking
Additional generic collection types missing in .net
SystemEx.Drawing.ICanvas< T > Interface Template Reference
Inheritance diagram for SystemEx.Drawing.ICanvas< T >:

Public Member Functions

GetPixel (int x, int y)
 Returns the color value at the specified coordinates. This method provides direct access to the underlying mathematical buffer without performing any rendering.
bool Resize (int size)
 Resizes the canvas to the specified total size (Width × Height). Existing values may be truncated or expanded depending on the implementation. This operation modifies only the mathematical buffer.
ICanvas< T > CopyRegion (int x, int y, int width, int height)
 Creates a new canvas containing a rectangular region of this canvas. The region is copied mathematically; no rendering or blending occurs.
ICanvas< T > Clone ()
 Creates a full mathematical clone of this canvas, duplicating all stored values.
void Fill (T objcolor)
 Fills the entire canvas with the specified color value. This operation replaces all stored data deterministically and does not perform any graphical drawing.
void FillRect (int x1, int y1, int x2, int y2)
 Fills a rectangular region of the canvas with the specified color value. This modifies only the mathematical buffer and does not perform rendering.
void Clear ()
 Clears the canvas by resetting all stored values to their default state. This operation affects only the mathematical buffer.
Pair< int, int > Find (T color)
 Searches the canvas for the first occurrence of the specified color value. Returns the coordinates of the match or (-1, -1) if no match is found.
int FindLast (T color)
 Searches the canvas for the last occurrence of the specified color value. Returns the index in the underlying buffer or -1 if no match is found.

Properties

int Height [get]
 Gets the height of the canvas in mathematical units (rows).
int Width [get]
 Gets the width of the canvas in mathematical units (columns).
IEnumerable< T > Buffer [get]
 Gets an enumerable view of the underlying buffer. The buffer contains the raw mathematical color values in row‑major order. No rendering or transformation occurs when accessing this property.

The documentation for this interface was generated from the following file:
  • Canvas.cs