次の方法で共有


ImageConverter Class

Definition

Provides helper methods for image conversion.

public ref class ImageConverter abstract sealed
public ref class ImageConverter abstract sealed
class ImageConverter abstract sealed
public static class ImageConverter
type ImageConverter = class
Public Class ImageConverter
Inheritance
ImageConverter

Methods

BitmapFromBitmapSource(BitmapSource)

Converts a BitmapSource to System.Drawing.Bitmap

BitmapSourceFromBitmap(Bitmap)

Converts a Bitmap into a BitmapSource

ExtractPixelSection(Byte[], Int32, Int32, Int32Rect, Color[])

This method will extract a section from a 32bit or 24bit pixel buffer upconverting to 32bit opaque if necessary. Colors matching one of the transparent colors will be translated into transparent pixels, all transparent pixels will then be made black.

ExtractPixelSection(Byte[], Int32, Int32, Int32Rect)

This method will extract a section from a 32bit or 24bit pixel buffer upconverting to 32bit opaque if necessary. Special colors Green-1 and Magenta will be translated into transparent pixels, all transparent pixels will 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.

Applies to