public static PixelFormat GetNearestPixelFormat( RasterImage image )
'Declaration Public Shared Function GetNearestPixelFormat( _ ByVal image As RasterImage _ ) As PixelFormat
'Usage Dim image As RasterImage Dim value As PixelFormat value = RasterImageConverter.GetNearestPixelFormat(image)
public: static PixelFormat GetNearestPixelFormat( RasterImage^ image )
You can pass the value returned from this property to the MakeCompatible method.
For more information refer to RasterImage and GDI/GDI+.