Extension methods on the Image object. More...
Static Public Member Functions | |
static double[] | GetPixel (this Image img, Point location) |
Gets the pixel values of all planes at the given position. More... | |
static Bitmap | ToBitmap (this Image img, int width, int height, PixelFormat pfm, Rect sourceRect, PlaneConfiguration planes, double gain, int offset, HighBitScaleMode mode) |
Create a System.Drawing.Bitmap from this CVB image. More... | |
static Bitmap | ToBitmap (this Image img, int width, int height, HighBitScaleMode mode) |
Convert this Stemmer.Cvb.Image into a Bitmap of selectable size. More... | |
static Bitmap | ToBitmap (this Image img, HighBitScaleMode mode) |
Convert this Stemmer.Cvb.Image into a Bitmap of identical size. More... | |
static Bitmap | ToBitmap (this Image img) |
Convert this Stemmer.Cvb.Image into a Bitmap of identical size and convert data with bit depth higher than 8 via HighBitScaleMode.Global scaling. More... | |
static PointF | ToPointF (this Point2Dd pt) |
implicit conversion operator to System.Drawing.PointF More... | |
static Point | ToPoint (this Point2Dd pt) |
implicit conversion operator to System.Drawing.Point More... | |
static Point[] | ToPoints (this Point2Dd[] arr) |
Convert a Point2Dd array into a Point array. More... | |
static PointF | ToPointF (this Point2D pt) |
Conversion to System.Drawing.PointF. More... | |
static Point | ToPoint (this Point2D pt) |
Conversion to System.Drawing.Point. More... | |
static Rectangle | ToRectangle (this Rect rect) |
Convert a Rect to a System.Drawing.Rectangle. More... | |
static Size | ToSize (this Size2D size) |
Convert a CvbSize to a System.Drawing.Size. More... | |
static Point2Dd | Add (Point2Dd lhs, Point rhs) |
Add a CvbPointD and a Point. More... | |
static unsafe TPixel[] | ToPixelBuffer< TPixel > (this Image image, RawPixelBufferLayout layout) |
Create a byte buffer with the serialized image pixel data. More... | |
Extension methods on the Image object.
Add a CvbPointD and a Point.
lhs | operand 1 |
rhs | operand 2 |
|
static |
Gets the pixel values of all planes at the given position.
location | Position in pixel coordinates. |
img | Object to work on. |
|
static |
Convert this Stemmer.Cvb.Image into a Bitmap of identical size and convert data with bit depth higher than 8 via HighBitScaleMode.Global scaling.
img | Stemmer.Cvb.Image object to work on. |
|
static |
Convert this Stemmer.Cvb.Image into a Bitmap of identical size.
img | Stemmer.Cvb.Image object to work on. |
mode | treatment for images with more than 8 bits per pixel |
|
static |
Convert this Stemmer.Cvb.Image into a Bitmap of selectable size.
width | Width of the Bitmap to be returned; may be 0, in which case the width is calculated taking into account the aspect ratio of this image (if height != 0) or will be set to the width of this image(if width and height are 0) |
height | Height of the Bitmap to be returned; may be 0, in which case the height is calculated taking into account the aspect ratio of this image (if width != 0) or will be set to the height of this image (if width and height are 0) |
img | Image object to work on. |
mode | Treatment for images with more than 8 bits per pixel |
|
static |
Create a System.Drawing.Bitmap from this CVB image.
width | Width of the Bitmap to be returned; may be 0, in which case the width is calculated taking into account the aspect ratio of this image (if height != 0) or will be set to the width of this image(if width and height are 0) |
height | Height of the Bitmap to be returned; may be 0, in which case the height is calculated taking into account the aspect ratio of this image (if width != 0) or will be set to the height of this image (if width and height are 0) |
sourceRect | Subregion of the image to paint into the bmData |
planes | Plane configuration to use for painting |
gain | Gain to multiply during painting |
offset | Offset to add during painting |
pfm | Pixel format to use |
mode | Treatment for images with more than 8 bits per pixel |
img | Image object to work on. |
ObjectDisposedException | If this image has already been disposed |
|
static |
Create a byte buffer with the serialized image pixel data.
TPixel | Type of the pixel array to produce. Must match the type of the pixels as described by the image's data type descriptor. |
image | Image object for which the pixels are to be serialized. Note that the input image must have the same data type on all input planes and that the data type must be mappable to one of the native CLR types. |
layout | Plane layout to use when serializing the image's pixel data (actual setting will not have an effect on images with only one plane). |
ArgumentNullException | if the image parameter is null |
InvalidOperationException | if the image is multi-planar and the different planes have different data type(s) or if the data type of the plane(s) of the image is/are not compatible with the TPixel generic parameter |
Exception | if serialization failed |
TPixel | : | struct |
|
static |
Conversion to System.Drawing.Point.
pt | operand to be converted |
|
static |
implicit conversion operator to System.Drawing.Point
pt | operand to be converted |
|
static |
Conversion to System.Drawing.PointF.
pt | operand to be converted |
|
static |
implicit conversion operator to System.Drawing.PointF
pt | operand to be converted |
|
static |
Convert a Point2Dd array into a Point array.
arr | Array to be converted. |
|
static |
|
static |
Convert a CvbSize to a System.Drawing.Size.
size | Size object to be converted. |