FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to create a bitmap and save to disk
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
How to create a bitmap and save to disk
Posted: Wed Apr 16, 2008 05:42 AM
For my room planer I need a combobox to select the type of reservation and It would be a service to show the final color in the CBX, too.

You can select any color in the setup and it would be fine if I could create
a bitmap of the selection.

Does someone know how to do.

I thought to use TSBUTTON’s in the setup and to change the color of the buttons and
then with btn:hardcopy() . But I can’t find a way how to save the btn:hardcopy to disk.
Is there any other function?

Thanks in advance
Otto


Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
How to create a bitmap and save to disk
Posted: Wed Apr 16, 2008 07:28 AM

use save2bmp method

Best Regards, Saludos



Falconi Silvio
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
How to create a bitmap and save to disk
Posted: Wed Apr 16, 2008 07:56 AM
Otto,

there is a method SaveToBmp () (from windows.prg) that should do the job.

oBtn:SaveToBmp("Button")
kind regards

Stefan
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
How to create a bitmap and save to disk
Posted: Wed Apr 16, 2008 08:28 AM

Stefan, thank you very much.
All is working.
Regards,
Otto

Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
How to create a bitmap and save to disk
Posted: Thu Apr 17, 2008 07:26 AM

glad to know it´s working :D

kind regards

Stefan

Continue the discussion