Table of Contents

Class GdiExtensions

Namespace
NAPS2.Images.Gdi
Assembly
NAPS2.Images.Gdi.dll
public static class GdiExtensions
Inheritance
GdiExtensions
Inherited Members

Methods

AsBitmap(IMemoryImage)

public static Bitmap AsBitmap(this IMemoryImage image)

Parameters

image IMemoryImage

Returns

Bitmap

AsImageFileFormat(ImageFormat)

public static ImageFileFormat AsImageFileFormat(this ImageFormat imageFormat)

Parameters

imageFormat ImageFormat

Returns

ImageFileFormat

AsImageFormat(ImageFileFormat)

public static ImageFormat AsImageFormat(this ImageFileFormat imageFileFormat)

Parameters

imageFileFormat ImageFileFormat

Returns

ImageFormat

AsImageLockMode(LockMode)

public static ImageLockMode AsImageLockMode(this LockMode lockMode)

Parameters

lockMode LockMode

Returns

ImageLockMode

AsImagePixelFormat(PixelFormat)

public static ImagePixelFormat AsImagePixelFormat(this PixelFormat pixelFormat)

Parameters

pixelFormat PixelFormat

Returns

ImagePixelFormat

AsPixelFormat(ImagePixelFormat)

public static PixelFormat AsPixelFormat(this ImagePixelFormat pixelFormat)

Parameters

pixelFormat ImagePixelFormat

Returns

PixelFormat

RenderToBitmap(IRenderableImage)

public static Bitmap RenderToBitmap(this IRenderableImage image)

Parameters

image IRenderableImage

Returns

Bitmap

SafeSetResolution(Bitmap, float, float)

public static void SafeSetResolution(this Bitmap image, float xDpi, float yDpi)

Parameters

image Bitmap
xDpi float
yDpi float