Extension methods for the members of the System.Drawing namespace.
More...
Static Public Member Functions | |
| static void | DrawImage (this Graphics dc, Image img, Rect sourceRect, Rect targetRect, PlaneConfiguration planes, double gain, int offset, HighBitScaleMode mode) |
| Draw a Image object into a Graphics object. | |
| static void | DrawImage (this Graphics dc, Image img, Rect sourceRect, Rect targetRect, HighBitScaleMode mode) |
| Draw a Image object into a Graphics object. | |
| static void | DrawImage (this Graphics dc, Image img, Rect targetRect, HighBitScaleMode mode) |
| Draw a Image object into a Graphics object. | |
| static void | DrawImage (this Graphics dc, Image img, HighBitScaleMode mode) |
| Draw a Image object into a Graphics object. Target rectangle is defined by the image's extent. | |
| static Image | ToImage (this Bitmap bitmap) |
| Creates a new Image and copies the data from the given bitmap . | |
| static Size2D | ToSize2D (this Size sz) |
Converts the given Size sz to a CvbSize. | |
| static Size2D | ToSize2D (SizeF sz) |
Converts the given SizeF sz to a SizeD. | |
| static WrappedImage | ToCvbWrappedImage (this BitmapData bmData) |
| Wraps, without copying, the given bmData pixel buffer in a ImageImage. | |
| static Point2Dd | ToPoint2Dd (this PointF p) |
| Create a PointD from a PointF object. | |
| static Point2Dd | ToPoint2Dd (this Point p) |
| Create a PointD from a Point. | |
| static Point2D | ToPoint2D (this Point p) |
| Create a CvbPoint from a Point. | |
| static Size2Dd | ToSize2Dd (this SizeF sz) |
Converts the given SizeF sz to a CvbSizeD. | |
| static RgbColor | ToColor (this Color clr) |
| Convert the given Color to a RgbColor structure. | |
Extension methods for the members of the System.Drawing namespace.
|
static |
|
static |
|
static |
Draw a Image object into a Graphics object.
| dc | Graphics object to paint to |
| img | Image to paint |
| sourceRect | Subsection of the image to paint |
| targetRect | Rectangle in the target dc to paint to |
| planes | Plane configuration to use |
| gain | Gain to apply |
| offset | Offset to apply |
| mode | Treatment for images with more than 8 bits per pixel. Note that setting this mode to HighbitScaleMode.ViewPort
|
| ArgumentNullException | If dc is null or img is null |
| ObjectDisposedException | If the img has already been disposed |
|
static |
|
static |
Convert the given Color to a RgbColor structure.
| clr | Color to be converted. |
|
static |
|
static |
Creates a new Image and copies the data from the given bitmap .
| bitmap | Bitmap to copy into new Image. |
| NotImplementedException | Bitmap pixel format not supported. |
| InsufficientMemoryException | The new image buffer could not be created. |
| CvbException | If image format could not be cloned. |
|
static |
|
static |
Create a PointD from a Point.
| p | Point to initialize with |
|
static |
Create a PointD from a PointF object.
| p | data to initialize with |
|
static |
Converts the given SizeF sz to a SizeD.
| sz | Size to convert. |
SizeD.
|
static |
Converts the given Size sz to a CvbSize.
| sz | Size to convert. |
SizeD.
|
static |
Converts the given SizeF sz to a CvbSizeD.
| sz | Size to convert. |
SizeD.