Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 14,141 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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