Namespace: Stemmer.Cvb.Extensions
Assembly: Stemmer.Cvb.Extensions (in Stemmer.Cvb.Extensions.dll) Version: 14.0.0.0
Syntax
public static Bitmap ToBitmap( this Image img, int width, int height, HighBitScaleMode mode )
Parameters
- img
- Type: Stemmer.CvbImage
Image object to work on. - width
- Type: SystemInt32
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
- Type: SystemInt32
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) - mode
- Type: Stemmer.CvbHighBitScaleMode
Treatment for images with more than 8 bits per pixel
Return Value
Type: BitmapNewly created bitmap
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Image. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).See Also