Archivos png

Moderator: Rathinagiri

User avatar
IMATECH
Posts: 188
Joined: Sun May 27, 2012 9:33 pm
Location: Brazil: Goiânia-GO.

Re: Archivos png

Post by IMATECH »

Thanks Claudio :)

Best regards...
M., Ronaldo

By: IMATECH

Imation Tecnologia
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 »

Hi Claudio
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.
I am sorry and apologize for not informing you about the changes I have made in your code. I had completely forgotten. :(

For including Bos Taurus in HFCL and to make it work in a library, I had to re-organize the source code.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
srvet_claudio
Posts: 2220
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: Archivos png

Post by srvet_claudio »

Hi Rathi.
rathinagiri wrote:I am sorry and apologize for not informing you about the changes I have made in your code. I had completely forgotten.

For including Bos Taurus in HFCL and to make it work in a library, I had to re-organize the source code.
Ok no problem, what is good for HMG is good for me...
In the next version I will correct the manual and the source code will be reorganized as in the HFCL.
Best regards,
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 »

Thanks for the understanding Claudio.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Archivos png

Post by Pablo César »

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.
Hola Claudio,

No sé si perdi algo, pero creo que todavia no podemos cargar imagenes de archivos png en los botones ? O todavia no hay forma de hacerlo ? Porque por bmp se pierde mucha la calidad y es pesado el tamaño.

Image

Hello Claudio,

I do not know if you lost something, but I think we still can not upload images of png files in the buttons ? Or still no way to do this ? Doing by bmp we loose much quality and heavy size too.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
srvet_claudio
Posts: 2220
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: Archivos png

Post by srvet_claudio »

Pablo César wrote:I do not know if you lost something, but I think we still can not upload images of png files in the buttons ? Or still no way to do this ? Doing by bmp we loose much quality and heavy size too.
Still can not upload images other than BMP in most controls, is a topic that I have pending.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Archivos png

Post by Pablo César »

Ok Claudio, thank you to keep us informed. It is a petty to able to load png files... :(

I am having diffculties to load CURSOR from RC file. But I wish to load only when is pressing mouse button down.

It was working this function:

Code: Select all

HB_FUNC( FILECURSOR )
{
   hb_retnl( ( LONG ) SetCursor( LoadCursorFromFile( HMG_parc( 1 ) ) ) );
}
But with this I need to put .cur name file. And I would like to load from RC file, just by it nick name. Claudio could give me a clue how to do it ?

Thanks for you usual attention.

My Rgds
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
srvet_claudio
Posts: 2220
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: Archivos png

Post by srvet_claudio »

Pablo César wrote: I am having diffculties to load CURSOR from RC file.
And I would like to load from RC file, just by it nick name.
Hi Pablo:

Code: Select all

HB_FUNC( RESOURCECURSOR )
{
   hb_retnl( ( LONG ) SetCursor( LoadCursor( GetModuleHandle( NULL ) , HMG_parc( 1 ) ) ) );
}
In resource file (.RC):

Code: Select all

MyCursor  CURSOR  FileCursor.CUR
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Archivos png

Post by Pablo César »

Funcionó perfecto. Gracias Claudio.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Archivos png

Post by Pablo César »

srvet_claudio wrote:
Pablo César wrote:I do not know if you lost something, but I think we still can not upload images of png files in the buttons ? Or still no way to do this ? Doing by bmp we loose much quality and heavy size too.
Still can not upload images other than BMP in most controls, is a topic that I have pending.
I am happy because, now we can use png files for buttons thanks to Mr. Claudio.

But it would be perfect if it can be loaded from .rc file. Do you expect to include this feature too, dear Claudio ?
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Post Reply