ImageConverter Class
Provides helper methods for image conversion.
Assembly: Microsoft.VisualStudio.Imaging (in Microsoft.VisualStudio.Imaging.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | BitmapFromBitmapSource(BitmapSource^) | Converts a BitmapSource to aSystem.Drawing.Bitmap. |
![]() ![]() | BitmapSourceFromBitmap(Bitmap^) | Converts a Bitmap into a BitmapSource. |
![]() ![]() | ExtractPixelSection(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. |
![]() ![]() | ExtractPixelSection(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. |
![]() ![]() | HiconFromBitmapSource(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.

