public void Dispose() { if (nativeImage != IntPtr.Zero) { NativeMethods.GdipDisposeImage(nativeImage); nativeImage = null; } }
public static extern GpStatus GdipImageSelectActiveFrame(GpImage image, ref Guid dimensionID, uint frameIndex);
GdipCreateTexture2I(GpImage image, WrapMode wrapmode, int x, int y, int width, int height, out GpTexture texture);
GdipCreateTexture2(GpImage image, WrapMode wrapmode, float x, float y, float width, float height, out GpTexture texture);
GdipGetTextureImage(GpTexture brush, out GpImage image);
public static extern GpStatus GdipGetTextureImage(GpTexture brush, out GpImage image);
public static extern GpStatus GdipCreateTextureIA(GpImage image, GpImageAttributes imageAttributes, float x, float y, float width, float height, out GpTexture texture);
public static extern GpStatus GdipCreateTexture2(GpImage image, WrapMode wrapmode, float x, float y, float width, float height, out GpTexture texture);
public static extern GpStatus GdipDrawImageI(GpGraphics graphics, GpImage image, int x, int y);
public static extern GpStatus GdipDrawImage(GpGraphics graphics, GpImage image, float x, float y);
public static extern GpStatus GdipSaveImageToFile(GpImage image, string filename, ref Guid clsidEncoder, EncoderParameters encoderParams);
public static extern GpStatus GdipSaveAddImage(GpImage image, GpImage newImage, EncoderParameters encoderParams);
public static extern GpStatus GdipDisposeImage(GpImage image);
public static extern GpStatus GdipLoadImageFromStream(IStream stream, out GpImage image);
public static extern GpStatus GdipLoadImageFromFile([MarshalAs(UnmanagedType.BStr)]string filename, out GpImage image);
internal ImagePlus(GpImage nativeImage, GpStatus status) { SetNativeImage(nativeImage); }
internal void SetNativeImage(GpImage nativeImage) { this.nativeImage = nativeImage; }
public static extern GpStatus GdipDrawImagePointRect(GpGraphics graphics, GpImage image, float x, float y, float srcx, float srcy, float srcwidth, float srcheight, Unit srcUnit);
public static extern GpStatus GdipCreateTexture2I(GpImage image, WrapMode wrapmode, int x, int y, int width, int height, out GpTexture texture);
public static extern GpStatus GdipDrawImagePointRectI(GpGraphics graphics, GpImage image, int x, int y, int srcx, int srcy, int srcwidth, int srcheight, Unit srcUnit);
public static extern GpStatus GdipCreateTextureIAI(GpImage image, GpImageAttributes imageAttributes, int x, int y, int width, int height, out GpTexture texture);
public static extern GpStatus GdipDrawImagePointsI(GpGraphics graphics, GpImage image, GpPoint[] dstpoints, int count);
public static extern GpStatus GdipCreateTexture(GpImage image, WrapMode wrapmode, out GpTexture texture);
public static extern GpStatus GdipDrawImagePointsRectI(GpGraphics graphics, GpImage image, GpPoint[] points, int count, int srcx, int srcy, int srcwidth, int srcheight, Unit srcUnit, GpImageAttributes imageAttributes, IntPtr callback, IntPtr callbackData);
GdipCreateTexture(GpImage image, WrapMode wrapmode, out GpTexture texture);
public static extern GpStatus GdipDrawImageRect(GpGraphics graphics, GpImage image, float x, float y, float width, float height);
GdipCreateTextureIA(GpImage image, GpImageAttributes imageAttributes, float x, float y, float width, float height, out GpTexture texture);
public static extern GpStatus GdipDrawImageRectI(GpGraphics graphics, GpImage image, int x, int y, int width, int height);
GdipCreateTextureIAI(GpImage image, GpImageAttributes imageAttributes, int x, int y, int width, int height, out GpTexture texture);
public static extern GpStatus GdipDrawImageRectRect(GpGraphics graphics, GpImage image, float dstx, float dsty, float dstwidth, float dstheight, float srcx, float srcy, float srcwidth, float srcheight, Unit srcUnit, GpImageAttributes imageAttributes, IntPtr callback, IntPtr callbackData);