|  | 
| libharu how to load png image from memory | 
| Yanıt Yaz   | 
| Yazar | |
| aziz.alkurt   Admin Group     Kayıt Tarihi: 27.Ocak.2012 Bulundugu Yer: FETHİYE Online: Sitede Değil Gönderilenler: 26 |  Alıntı  Cevapla  Konu: libharu how to load png image from memory Gönderim Zamanı: 09.Aralik.2012 Saat 13:05 | 
| 
       FILE *file; file =fopen("d:/b.png","rb"); fseek (file , 0 , SEEK_END); size_t length=ftell (file); rewind (file); dstTmp = (unsigned char*) malloc (sizeof(unsigned char)*length); fread (dstTmp,1,length,file); fclose(file); // Bytes in 'dstTmp' variable, size of bytes is 'length' variable // 'pdf' variable is HPDF_Doc HPDF_Stream stream=HPDF_MemStream_New(pdf->mmgr,length); HPDF_MemStreamAttr attr = (HPDF_MemStreamAttr)stream->attr; attr->r_ptr=dstTmp; attr->buf->count=length; HPDF_Image img = HPDF_Image_LoadPngImage (pdf->mmgr, stream, pdf->xref, HPDF_FALSE); | |
|  | |
| Yanıt Yaz   | 
| Forum Atla | Forum İzinleri   Kapalı Foruma Yeni Konu Gönderme Kapalı Forumdaki Konulara Cevap Yazma Kapalı Forumda Cevapları Silme Kapalı Forumdaki Cevapları Düzenleme Kapalı Forumda Anket Açma Kapalı Forumda Anketlerde Oy Kullanma |