public void Dispose() { if (nativeImage != IntPtr.Zero) { NativeMethods.GdipDisposeImage(nativeImage); nativeImage = null; } }
GdipDrawImage(GpGraphics graphics, GpImage image, float x, float y);
internal void SetNativeImage(GpImage nativeImage) { this.nativeImage = nativeImage; }
GdipGetImageFlags(GpImage image, out uint flags);
GdipGetImageHorizontalResolution(GpImage image, out float resolution);
GdipGetImageWidth(GpImage image, out uint width);
GdipGetImageDimension(GpImage image, out float width, out float height);
GdipGetImageBounds(GpImage image, float[] srcRect, Unit srcUnit);
GdipDrawImagePointRectI(GpGraphics graphics, GpImage image, int x, int y, int srcx, int srcy, int srcwidth, int srcheight, Unit srcUnit);
GdipDrawImagePointRect(GpGraphics graphics, GpImage image, float x, float y, float srcx, float srcy, float srcwidth, float srcheight, Unit srcUnit);
GdipDrawImagePointsI(GpGraphics graphics, GpImage image, GpPoint[] dstpoints, int count);
GdipDrawImageRectI(GpGraphics graphics, GpImage image, int x, int y, int width, int height);
GdipLoadImageFromFile([MarshalAs(UnmanagedType.BStr)] string filename, out GpImage image);
GdipDrawImageRect(GpGraphics graphics, GpImage image, float x, float y, float width, float height);
GdipDrawImageI(GpGraphics graphics, GpImage image, int x, int y);
GdipGetImageGraphicsContext(GpImage image, out GpGraphics graphics);
GdipGetImageBounds(GpImage image, out GpRectF srcRect, out Unit srcUnit);
GdipDrawImageRectRectI(GpGraphics graphics, GpImage image, int dstx, int dsty, int dstwidth, int dstheight, int srcx, int srcy, int srcwidth, int srcheight, Unit srcUnit, GpImageAttributes imageAttributes, IntPtr callback, IntPtr callbackData);
GdipGetImageBounds(GpImage image, byte[] srcRect, Unit srcUnit);
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);
GdipGetImageType(GpImage image, out ImageType type);
GdipCloneImage(GpImage image, out GpImage cloneImage);
GdipGetImageHeight(GpImage image, out uint height);
GdipDisposeImage(GpImage image);
GdipGetImageVerticalResolution(GpImage image, out float resolution);
GdipSaveImageToFile(GpImage image, string filename, ref Guid clsidEncoder, EncoderParameters encoderParams);
internal ImagePlus(GpImage nativeImage, GpStatus status) { SetNativeImage(nativeImage); }
GdipSaveAdd(GpImage image, EncoderParameters encoderParams);
GdipSaveAddImage(GpImage image, GpImage newImage, EncoderParameters encoderParams);
GdipGetPropertyItemSize(GpImage image, PROPID propId, out uint size);