示例#1
0
 /// <summary>
 /// Creates a new <see cref="PDFiumBitmap"/> using memory allocated by the caller.
 /// The caller is responsible for freeing the memory and that the adress stays
 /// valid during the lifetime of the returned <see cref="PDFiumBitmap"/>.
 /// </summary>
 /// <param name="width">The width of the new bitmap.</param>
 /// <param name="height">The height of the new bitmap.</param>
 /// <param name="format">The format of the new bitmap.</param>
 /// <param name="scan0">The adress of the memory block which holds the pixel values.</param>
 /// <param name="stride">The number of bytes per image row.</param>
 public PDFiumBitmap(int width, int height, BitmapFormats format, IntPtr scan0, int stride)
     : this(PDFium.FPDFBitmap_CreateEx(width, height, format, scan0, stride), format)
 {
 }