Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Namespace: RT.Util.Drawing

Assembly: RT.Util
Wrapper around a Bitmap that allows access to its raw byte data.

Wraps a Graphics to provide a hopefully more convenient interface. The major bits of functionality are:

  • all coordinates in doubles or [Unrecognized cref attribute] structs;
  • support for the Y axis growing upwards;
  • functions targeted at drawing a 2d world onto a viewport of a specified size.

Common terms and abbreviations:

Screen Rectangular area that will be the final destination of the drawing.
Viewport The region, defined in terms of the world coordinates, that is viewable on the screen.
World coordinates Coordinates of the underlying "world" being represented.
Screen coordinates Coordinates on the screen, can be used to directly draw on the underlying Graphics.
WX, WY, WW, WH World X, Y, Width, Height, respectively
SX, SY, SW, SH Screen X, Y, Width, Height, respectively
Encodes axes direction mode for Canvas.
Provides a way to temporarily modify the Transform of a System.Drawing.Graphics object by enclosing the affected code in a “using” scope.
Contains static methods for various graphics-related operations.
Specifies text alignment for Canvas.