Page 2 of 3

Re: Archivos png

Posted: Mon Oct 29, 2012 2:08 am
by IMATECH
Thanks Claudio :)

Best regards...

Re: Archivos png

Posted: Mon Oct 29, 2012 5:17 am
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.

Re: Archivos png

Posted: Mon Oct 29, 2012 11:17 am
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.

Re: Archivos png

Posted: Mon Oct 29, 2012 3:14 pm
by Rathinagiri
Thanks for the understanding Claudio.

Archivos png

Posted: Sun May 04, 2014 4:20 am
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.

Re: Archivos png

Posted: Sun May 04, 2014 6:04 am
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.

Archivos png

Posted: Sun May 04, 2014 7:01 am
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

Re: Archivos png

Posted: Sun May 04, 2014 6:58 pm
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

Archivos png

Posted: Mon May 05, 2014 12:48 am
by Pablo César
Funcionó perfecto. Gracias Claudio.

Archivos png

Posted: Tue Jun 03, 2014 4:15 pm
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 ?