Esempio n. 1
0
 /// <summary>
 /// Read the file and draw rectangles on it.
 /// </summary>
 /// <param name="fileName">The name of the file.</param>
 /// <param name="annotations">Annotations to be add to the image. Can consist of rectangles and labels</param>
 /// <returns>The image in Jpeg stream format</returns>
 public static Emgu.Models.JpegData ImageFileToJpeg(String fileName, Annotation[] annotations = null)
 {
     using (Android.Graphics.Bitmap bmp = ImageFileToBitmap(fileName, annotations))
     {
         return(bmp.ToJpeg());
     }
 }