English
Forum

Text in bitmaps

 

Jac
de
Lad
Hello Frank,

do you know How I a Text into Image, I with LoadExtImage loaded or with CreateExtBmp created Have or hold what in the manner, have write can?

Jac
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
01/19/06  
 



i'm of course not Frank - but möglicherweise falls its response similar from.

1. load your Image by Mloadbmp 
2. write your Text by drawtext  the Image after You by startpaint  -1 the with mloadbmp loaded Image umgeschaltet have.
3. save the image under one temporären names to $tempdir 
4. load the gespeicherte presentment by loadextimage 
5. Hüpfe umher.
 
01/19/06  
 




Frank
Abbing
Hi,

nene, my response falls quite different from
ProSpeed has two Examples parat, The Texts on Bitmaps settle:

FA_Textscroller.prf
FA_Zeichnen.prf

Siehs you there simply on.
 
01/20/06  
 




Jac
de
Lad
thanks iF, that white I pointed goes. but I wished not first the Pic Save, loading, manipulating, Save, loading...this is me To umständlich.

thanks Frank, I schaus me same on!

Jac
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
01/21/06  
 




Jac
de
Lad
@Frank: thanks, Frank functions really primst!

yet ne question: can I The Backgroundcolor on transparent to put? (i know, I too one other Image take can and then by Prospeed reinkopieren can, with CopyExtBmp and last Parameter -1, but the I will grade bypass!)?

Jac
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
01/21/06  
 




Frank
Abbing
Hi,

for there The API SetBkColor() and SetBkMode().
 
01/21/06  
 




Jac
de
Lad
Hello Frank,

jaja, the Have I already seen. but I war with the SetBkColor not there. there come How lustigsten colours out, but not transparent. with -1 works How said neither...

Jac
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
01/22/06  
 




Frank
Abbing
Hi,

stell first time SetBkMode() on transparent.
 
01/22/06  
 




Jac
de
Lad
but WIE does it? I Have already so quite everything probiert???

Jac
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
01/22/06  
 




Frank
Abbing
I probier time, time as soon as I find.
 
01/23/06  
 




Frank
Abbing
Hmm, is still not so heavy. I find, is in the Demosource but well described and comes well rüber
CompileMarkSeparation
Declare neu&,x&,y&,z&,text$,background&,font&,oldfont&
 $I Prospeed_Funktionen.inc
DEF SetTextColor(2) !"GDI32","SetTextColor"
DEF SetBkColor(2) !"GDI32","SetBkColor"
DEF SetBkMode(2) !"GDI32","SetBkMode"
DEF TextOut(5) !"GDI32","TextOutA"
DEF SelectObject(2) !"GDI32","SelectObject"
SetTrueColor 1
neu&=usedll("ProSpeed.dll")
text$="bmps/Hintergrund.jpg"
background&=LoadExtImage(Addr(text$))
Window (%maxx/2-400),(%maxy/2-200)-800,400
font&=Create("Font","Lucida Console",24,0,0,0,0)
oldfont&=SelectObject(background&,font&)
text$="Probetext mit der ProSpeed.dll. Ohne Sprite :-)"
SetTextColor(background&,Rgb(255,255,255))
SetBkMode(background&,1)
SetBkColor(background&,0)
TextOut(background&,30,30,addr(text$),len(text$))
selectObject(background&,oldfont&)
DeleteObject font&
CopyExtBmp(%hdc2,0,0,GetBmpWidth(background&),GetBmpHeight(background&),background&,0,0,0)
Repaint
WaitInput
FreeAllExtBmps()
freedll neu&
END
 
01/23/06  
 




Jac
de
Lad
Ui, I Have nothing of the sort discover can and my Tests having too only Mist yield...thanks for trouble, I probiers same from! Perhaps could you the Yes as function into Prospeed to assimilate, if You still time yet what moreover dran etnwickeln want...

Jac
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
01/24/06  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.222 Views

Untitledvor 0 min.
H.Brill02/09/22
Andre Rohland11/29/12
Julian Schmidt08/10/11

Themeninformationen

this Topic has 3 subscriber:

Jac de Lad (8x)
Frank Abbing (6x)
iF (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie