Exemplo n.º 1
0
 /// <summary>
 /// Casts an image to an bitmap.
 /// <para>Notice that GDI+ does not support bitmaps which stride is not 4.</para>
 /// </summary>
 /// <param name="img">Input image.</param>
 /// <returns>Bitmap</returns>
 public static Bitmap AsBitmap(this Image<Bgra<short>> img)
 {
     return asBitmap(img, PixelFormat.Format64bppArgb);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Casts an image to an bitmap.
 /// <para>Notice that GDI+ does not support bitmaps which stride is not 4.</para>
 /// </summary>
 /// <param name="img">Input image.</param>
 /// <returns>Bitmap</returns>
 public static Bitmap AsBitmap(this Image<Bgr<short>> img)
 {
     return asBitmap(img, PixelFormat.Format48bppRgb);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Casts an image to an bitmap.
 /// <para>Notice that GDI+ does not support bitmaps which stride is not 4.</para>
 /// </summary>
 /// <param name="img">Input image.</param>
 /// <returns>Bitmap</returns>
 public static Bitmap AsBitmap(this Image<Bgra<byte>> img)
 {
     return asBitmap(img, PixelFormat.Format32bppArgb);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Casts an image to an bitmap.
 /// <para>Notice that GDI+ does not support bitmaps which stride is not 4.</para>
 /// </summary>
 /// <param name="img">Input image.</param>
 /// <returns>Bitmap</returns>
 public static Bitmap AsBitmap(this Image<Bgr<byte>> img)
 {
     return asBitmap(img, PixelFormat.Format24bppRgb);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Casts an image to an bitmap.
 /// <para>Notice that GDI+ does not support bitmaps which stride is not 4.</para>
 /// </summary>
 /// <param name="img">Input image.</param>
 /// <returns>Bitmap</returns>
 public static Bitmap AsBitmap(this Image<Gray<short>> img)
 {
     return asBitmap(img, PixelFormat.Format16bppGrayScale);
 }
Exemplo n.º 6
0
 /// <summary>
 /// Casts an image to an bitmap.
 /// <para>Notice that GDI+ does not support bitmaps which stride is not 4.</para>
 /// </summary>
 /// <param name="img">Input image.</param>
 /// <returns>Bitmap</returns>
 public static Bitmap AsBitmap(this Image<Gray<byte>> img)
 {
     return asBitmap(img, PixelFormat.Format8bppIndexed);
 }