Archivos png

Moderator: Rathinagiri

Mario Mansilla
Posts: 270
Joined: Wed Aug 13, 2008 2:35 pm
Location: Córdoba - Argentina

Archivos png

Post 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
User avatar
IMATECH
Posts: 188
Joined: Sun May 27, 2012 9:33 pm
Location: Brazil: Goiânia-GO.

Re: Archivos png

Post by IMATECH »

Hi Mario Mansilla !


.png is only available via hmg_bpdf ( .pdf files )


regards
M., Ronaldo

By: IMATECH

Imation Tecnologia
Mario Mansilla
Posts: 270
Joined: Wed Aug 13, 2008 2:35 pm
Location: Córdoba - Argentina

Re: Archivos png

Post 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
User avatar
srvet_claudio
Posts: 2220
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: Archivos png

Post by srvet_claudio »

Hola Mario.
HMG no soporta imagenes PNG, solo trabaja con los formatos BMP, GIF y JPG.
Saludos,
Claudio.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
Rathinagiri
Posts: 5480
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Archivos png

Post by Rathinagiri »

Dear Claudio,

Using libpng can we loadpicture?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
klauskugel
Posts: 90
Joined: Tue Oct 09, 2012 2:28 pm

Re: Archivos png

Post 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
User avatar
srvet_claudio
Posts: 2220
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: Archivos png

Post 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.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
IMATECH
Posts: 188
Joined: Sun May 27, 2012 9:33 pm
Location: Brazil: Goiânia-GO.

Re: Archivos png

Post 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...
Attachments
Sources_HFCL.rar
hfcl ( include boss tarurus )
project updated to be compiled with -w1 -es2
some bugs fixed ( please revise )
(62.11 KiB) Downloaded 312 times
M., Ronaldo

By: IMATECH

Imation Tecnologia
Carlos Britos
Posts: 245
Joined: Sat Aug 02, 2008 5:03 pm

Re: Archivos png

Post 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
Regards/Saludos, Carlos (bcd12a)
User avatar
srvet_claudio
Posts: 2220
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: Archivos png

Post 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.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
Post Reply