Page 1 of 3
Archivos png
Posted: Fri Oct 26, 2012 7:51 pm
by Mario Mansilla
Hola :
Utilizando la posibilidad de imprimir en pdf con hmg_bpdf veo que utiliza imagenes en formato pdf . Ahora bien pruebo utilizar este formato en controles Button , Toolbar , Image , etc y no muestra la imagen correspondiente .
Que me está faltando agregar para poder usar imagenes png en los controles y en el archivo de recursos rc .
Utilizo Hmg.3.045 con su respectivo ide .
Saludos cordiales
Mario Mansilla
Hello:
Using the ability to print to PDF using hmg_bpdf see images in PDF format. Now I try to use this format Button, Toolbar, Image, etc and not shows the corresponding image.
What's missing me add png images to use in controls and rc resource file.
Hmg.3.045 use with its own ide
Re: Archivos png
Posted: Fri Oct 26, 2012 10:15 pm
by IMATECH
Hi Mario Mansilla !
.png is only available via hmg_bpdf ( .pdf files )
regards
Re: Archivos png
Posted: Sat Oct 27, 2012 1:48 pm
by Mario Mansilla
Hola Ronaldo :
muchas gracias por tu aclaración .
Esta limitación es debido al desarrollo actual de Harbour o de Minigui
Saludos .
Mario Mansilla
Hi Ronaldo:
thank you very much for your clarification.
This limitation is due to the current development of Harbour or Minigui .
Greetings.
Mario Mansilla
Re: Archivos png
Posted: Sat Oct 27, 2012 2:02 pm
by srvet_claudio
Hola Mario.
HMG no soporta imagenes PNG, solo trabaja con los formatos BMP, GIF y JPG.
Saludos,
Claudio.
Re: Archivos png
Posted: Sat Oct 27, 2012 2:06 pm
by Rathinagiri
Dear Claudio,
Using libpng can we loadpicture?
Re: Archivos png
Posted: Sun Oct 28, 2012 3:23 pm
by klauskugel
Sorry to disturb, but I just found
something about PNG-Files.
http://libharu.org/wiki/Documentation/A ... ile2.28.29
HPDF_Image HPDF_LoadPngImageFromFile2 (HPDF_Doc pdf,
const char *filename);
Happy HMGing
klauskugel
Re: Archivos png
Posted: Sun Oct 28, 2012 10:16 pm
by srvet_claudio
rathinagiri wrote:Using libpng can we loadpicture?
Hi Brother.
I'm sorry, I've never used libpng.
Later I will trying to make a function for load PNG images with gdiplus.dll for HMG.
I am currently preparing version 1.0.1 of Bos Taurus for some make effects in the imagens (e.g. emboss, blur, sharpen, etc.).
Best regards,
Claudio.
Re: Archivos png
Posted: Sun Oct 28, 2012 10:32 pm
by IMATECH
Hi Claudio !
Can you upgrade your lib: "Bos Taurus" to be compiled with -w3 -es2
and if possible create a separeted file for .c code ( sample atached )
Best regards...
Re: Archivos png
Posted: Sun Oct 28, 2012 11:30 pm
by Carlos Britos
srvet_claudio wrote:rathinagiri wrote:Using libpng can we loadpicture?
Hi Brother.
I'm sorry, I've never used libpng.
Later I will trying to make a function for load PNG images with gdiplus.dll for HMG.
I am currently preparing version 1.0.1 of Bos Taurus for some make effects in the imagens (e.g. emboss, blur, sharpen, etc.).
Best regards,
Claudio.
Hi
the harbour contrib, freeimage lib has the libpng included, maybe can help
Re: Archivos png
Posted: Mon Oct 29, 2012 1:16 am
by srvet_claudio
IMATECH wrote:Can you upgrade your lib: "Bos Taurus" to be compiled with -w3 -es2
and if possible create a separeted file for .c code ( sample atached )
Hi Ronaldo.
The library consists of three separate source files as indicated by the PDF manual, but perhaps for reasons of clarity with the other files in the HFCL,
Rathinagiri decided to gather all of Bos Taurus files into one file PRG.
Thank you for inform me of the functions that do not return a Nil value explicit, Grigory Filatov already had notified me.
RGB () is a macro that is already defined in the file i_graph.ch
Be ware of the definitions that you added:
#define BLACK RGB( 0, 0, 0 )
#define WHITE RGB( 255, 255, 255 )
This creates color COLORREF and Bos Taurus works with high-level functions with RGB color structures with arrays for compatibility with HMG, eg.
#define BLACK {0, 0, 0}
Thank you very much for review my project.
Best regards,
Claudio.