Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 01:28
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (alibaba, 7th_zorro), 636 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Render TEXT* into bmap #321015
04/26/10 17:02
04/26/10 17:02
Joined: Nov 2009
Posts: 89
Germany, NRW
T
TrackingKeks Offline OP
Junior Member
TrackingKeks  Offline OP
Junior Member
T

Joined: Nov 2009
Posts: 89
Germany, NRW
Hi!
Is it possible to render a TEXT* object into a bmap?
I think it has something to do with target_map but I don't know how to use it blush !
Thanks for your help!


Gamestudio: A7.82 Commercial/A8 Commercial
System specs (Laptop):
Windows 7 64bit
DirectX v10.1
Intel Core i7-720QM CPU @ 1,60 GHz
4GB DDR2 Ram
NVIDIA GeForce GT 230M (1024MB)
Re: Render TEXT* into bmap [Re: TrackingKeks] #321016
04/26/10 17:07
04/26/10 17:07
Joined: May 2009
Posts: 445
Peine, Germany
Razoron Offline
Senior Member
Razoron  Offline
Senior Member

Joined: May 2009
Posts: 445
Peine, Germany
Maybe like this:
Code:
PANEL*pnl
{....}

TEXT*txt
{....}

txt.target_map=pnl.bmap;



Re: Render TEXT* into bmap [Re: Razoron] #321023
04/26/10 17:27
04/26/10 17:27
Joined: Nov 2009
Posts: 89
Germany, NRW
T
TrackingKeks Offline OP
Junior Member
TrackingKeks  Offline OP
Junior Member
T

Joined: Nov 2009
Posts: 89
Germany, NRW
OK, thanks. But after trying to write the target_map in a file it contains the bmap of the panel.
What is wrong with my code?

Code:
BMAP* rendermap = "#1024x768x32";
test_txt.target_map=effekt_pan.bmap;
wait(1);
	
bmap_blit (rendermap,test_txt.target_map, NULL, NULL);
bmap_save(rendermap,"result.bmp");




Gamestudio: A7.82 Commercial/A8 Commercial
System specs (Laptop):
Windows 7 64bit
DirectX v10.1
Intel Core i7-720QM CPU @ 1,60 GHz
4GB DDR2 Ram
NVIDIA GeForce GT 230M (1024MB)
Re: Render TEXT* into bmap [Re: TrackingKeks] #321026
04/26/10 17:35
04/26/10 17:35
Joined: May 2009
Posts: 445
Peine, Germany
Razoron Offline
Senior Member
Razoron  Offline
Senior Member

Joined: May 2009
Posts: 445
Peine, Germany
I hope you decleared a panel before.
Code:
BMAP* rendermap = "#1024x768x32";
PANEL*effekt_pan={...bmap=rendermap)
test_txt.target_map=effekt_pan.bmap;
wait(1);
	
bmap_blit (rendermap,test_txt.target_map, NULL, NULL);
bmap_save(rendermap,"result.bmp");



Re: Render TEXT* into bmap [Re: Razoron] #321100
04/27/10 05:59
04/27/10 05:59
Joined: Nov 2009
Posts: 89
Germany, NRW
T
TrackingKeks Offline OP
Junior Member
TrackingKeks  Offline OP
Junior Member
T

Joined: Nov 2009
Posts: 89
Germany, NRW
Thanks for your help!
Yes, of course I have defined a panel but the TEXT* wasn't visible at this time. After setting the SHOW flag everything works fine.

Last edited by TrackingKeks; 04/27/10 06:00.

Gamestudio: A7.82 Commercial/A8 Commercial
System specs (Laptop):
Windows 7 64bit
DirectX v10.1
Intel Core i7-720QM CPU @ 1,60 GHz
4GB DDR2 Ram
NVIDIA GeForce GT 230M (1024MB)

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1