ImageConverter Class

Visual Studio 2015
 

Provides helper methods for image conversion.

Namespace:   Microsoft.VisualStudio.Imaging
Assembly:  Microsoft.VisualStudio.Imaging (in Microsoft.VisualStudio.Imaging.dll)

System::Object
  Microsoft.VisualStudio.Imaging::ImageConverter

public ref class ImageConverter abstract sealed 

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticBitmapFromBitmapSource(BitmapSource^)

Converts a BitmapSource to aSystem.Drawing.Bitmap.

System_CAPS_pubmethodSystem_CAPS_staticBitmapSourceFromBitmap(Bitmap^)

Converts a Bitmap into a BitmapSource.

System_CAPS_pubmethodSystem_CAPS_staticExtractPixelSection(array<Byte>^, Int32, Int32, Int32Rect)

Extracts a section from a 32bit or 24bit pixel buffer, up-converting to 32bit opaque if necessary. Special colors Green-1 and Magenta are translated into transparent pixels, and all transparent pixels are then be made black.

System_CAPS_pubmethodSystem_CAPS_staticExtractPixelSection(array<Byte>^, Int32, Int32, Int32Rect, array<Color>^)

This method extracts a section from a 32bit or 24bit pixel buffer, up-converting to 32bit opaque if necessary. Colors matching one of the transparent colors are translated into transparent pixels, and all transparent pixels are then be made black.

System_CAPS_pubmethodSystem_CAPS_staticHiconFromBitmapSource(BitmapSource^)

Converts a BitmapSource to an HICON. The caller is responsible for destroying the returned HICON. Do not call Icon.FromHandle expecting the returned Icon object to have ownership of the HICON.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: