public static GhostscriptViewerImage Create(int width, int height, int stride, PixelFormat format) { GhostscriptViewerImage gvi = new GhostscriptViewerImage(width, height, stride, format); return gvi; }
public override int Presize(IntPtr handle, IntPtr device, int width, int height, int raster, uint format) { _srcFormat = format; if (_destImage != null) { _destImage.Dispose(); _destImage = null; } _destImage = GhostscriptViewerImage.Create(width, height, raster, PixelFormat.Format24bppRgb); return(0); }