![]() ![]() Ad esempio, tramite il metodo LoadFromStream, puoi caricare il bitmap da qualsiasi "stream", che può essere in memoria, su file, via socket oppure associato a una risorsa. Per il caricamento delle immagini, come ti è stato suggerito, occorre usare i metodi dell'oggetto TBitmap sulla proprietà Image.Bitmap.He could have created a bigger buffer and read in more data, but that would waste cycles on a bad bitmap. The first two bytes of a bitmap file always contain the ascii letters 'B' & 'M'. buffer is a 2 char array to read the first 2 bytes of the bitmap file he is reading.File: commonui\System\Drawing\Bitmap.cs Project: ndp\fx\src\ (System.Drawing).using (Bitmap bmp = new using (BarCodeReader reader = new BarCodeReader(bmp, new Rectangle(0, 0, bmp.Width, bmp.Height), DecodeType. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |