- image
- The source image.
Visual Basic (Declaration) | |
---|---|
Public Shared Function GetNearestPixelFormat( _ ByVal image As RasterImage _ ) As PixelFormat |
Visual Basic (Usage) | Copy Code |
---|---|
Dim image As RasterImage Dim value As PixelFormat value = RasterImageConverter.GetNearestPixelFormat(image) |
C# | |
---|---|
public static PixelFormat GetNearestPixelFormat( RasterImage image ) |
C++/CLI | |
---|---|
public: static PixelFormat GetNearestPixelFormat( RasterImage^ image ) |
Parameters
- image
- The source image.
For an example, refer to MakeCompatible example.
You can pass the value returned from this property to the MakeCompatible method.
For more information refer to RasterImage and GDI/GDI+.
Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)