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. More... | |
static void | DrawImage (this Graphics dc, Image img, Rect sourceRect, Rect targetRect, HighBitScaleMode mode) |
Draw a Image object into a Graphics object. More... | |
static void | DrawImage (this Graphics dc, Image img, Rect targetRect, HighBitScaleMode mode) |
Draw a Image object into a Graphics object. More... | |
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. More... | |
static Image | ToImage (this Bitmap bitmap) |
Creates a new Stemmer.Cvb.Image and copies the data from the given bitmap . More... | |
static Size2D | ToSize2D (this Size sz) |
Converts the given Size sz to a CvbSize . More... | |
static Size2D | ToSize2D (SizeF sz) |
Converts the given SizeF sz to a SizeD . More... | |
static WrappedImage | ToCvbWrappedImage (this BitmapData bmData) |
Wraps, without copying, the given bmData pixel buffer in a Stemmer.Cvb.ImageImage. More... | |
static Point2Dd | ToPoint2Dd (this PointF p) |
Create a PointD from a PointF object. More... | |
static Point2Dd | ToPoint2Dd (this Point p) |
Create a PointD from a Point. More... | |
static Point2D | ToPoint2D (this Point p) |
Create a CvbPoint from a Point. More... | |
static Size2Dd | ToSize2Dd (this SizeF sz) |
Converts the given SizeF sz to a CvbSizeD . More... | |
static RgbColor | ToColor (this System.Drawing.Color clr) |
Convert the given System.Drawing.Color to a RgbColor structure. More... | |
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 |
|
static |
Wraps, without copying, the given bmData pixel buffer in a Stemmer.Cvb.ImageImage.
bmData | Bitmap data to wrap. |
NotImplementedException | Bitmap pixel format not supported. |
|
static |
Creates a new Stemmer.Cvb.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
.