Ghostscript.NET.Viewer.GhostscriptViewerImage.Create C# (CSharp) Method

Create() public static method

public static Create ( int width, int height, int stride, PixelFormat format ) : GhostscriptViewerImage
width int
height int
stride int
format PixelFormat
return GhostscriptViewerImage
        public static GhostscriptViewerImage Create(int width, int height, int stride, PixelFormat format)
        {
            GhostscriptViewerImage gvi = new GhostscriptViewerImage(width, height, stride, format);
            return gvi;
        }

Usage Example

        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);
        }
All Usage Examples Of Ghostscript.NET.Viewer.GhostscriptViewerImage::Create