/// <summary> /// Adds a filler byte when an 8-bit grayscale image or 24-bit RGB image is read. /// </summary> /// <param name="filler"> /// The filler byte to add. /// </param> /// <param name="flags"> /// Flags controlling how to add the filler. /// </param> public void TransformSetFiller(uint filler, PngFillerFlags flags) { if (this.transformationsSaved) { throw new InvalidOperationException(); } NativeMethods.png_set_filler(this.pngPtr, filler, flags); }
public static extern void png_set_IHDR(IntPtr png_ptr, IntPtr info_ptr, int width, int height, int bit_depth, PngColorType color_type, PngInterlaceType PNG_INTERLACE_NONE, PngCompressionType PNG_COMPRESSION_TYPE_BASE, PngFillerFlags PNG_FILTER_TYPE_BASE);
public static extern void png_set_filler(IntPtr png_ptr, uint filler, PngFillerFlags flags);