Example #1
0
 /// <summary>
 /// Allocate an image buffer for use with TurboJPEG.
 /// </summary>
 /// <param name="bytes">The number of bytes to allocate.</param>
 /// <returns>A pointer to a newly-allocated buffer with the specified number of bytes.</returns>
 /// <seealso cref="Free"/>
 public static IntPtr Alloc(int bytes) => TurboJpegImport.TjAlloc(bytes);