Ejemplo 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);
 }
Ejemplo 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);
 }
Ejemplo 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);
 }
Ejemplo 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);
 }
Ejemplo 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);
 }
Ejemplo 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);
 }