English
Forum

Write text

 
Hello Frank.

ICh Have there time ne question:
Würd gladly know How I Text in a prospeed-bitmap write can,habs schin with startpaint attempts but the works net !?!

how does that because?

greeting Martin
 
04/19/04  
 



Hello Martin,

Yes, but naturally not Start-/Endpaint. The works Yes only Profan-intern.

either can you whom Text into Memory bitmap of Profan write and from there in a ProSpeed HDC copy...

...or You using The APIs DrawText() or DrawTextEx().
too other characters and Farbfunktionen can via API directly on a ProSpeed HDC apply go, z.B.
SetPixel(), CreatePen(), Rectangle and ellipsis-functions, lines and Kurven-functions, Kreisausschnitte and Bezierkurven, Font and welt-functions and much More. the GDI is there very flexibly.
try rewards In any drop !!!

hope, the helps you moreover.

Greeting, Frank
 
04/19/04  
 



unfortunately Have I of api Nich so plenty ahnung and from the win32 be so did i not schlau become (rectangle parameter ???).
Wäe certainly too for others prospeed user interestingly if You a couple examples in your hilfa take in would.

greeting Martin
 
04/19/04  
 



Hello Martin,

the can I gladly make.
for Rechtecke would the z.B.:

Rectangle(HDC&,X1,Y1,X2,Y2)

simply, or? i'll for next Version time one Beispielprogramm to the Sourcecodes post...

Greeting, Frank
 
04/19/04  
 



Hi,

Text in a Hintergrundbitmap To write goes still integrally normal with DrawText..I have one photo as background and a Text with DrawText reingeschrieben, still a welt painted..ready..works well..

another Moeglichkeit is whom Text as sprite reinschweben let and the Prospeed into background copy..sees certainly well from..

Gerold
 
04/19/04  
 



but how does that whom with the Txt and Api ?

there becomes as parameter somehow one rectangle expects ?!?
and how can I The font and colour einsteln ?

super that you a couple examples aufnimst

greeting Martin
 
04/19/04  
 



Hello Martin,

DrawText() using one rectangle, circa its Text there einzutragen. the rectangle can in a Memory-Variables indicated go, four Long-values one after another, so z.B.:

VarToLong4(area#,0,x1&,y1&,x2&,y2&)
DrawText(prospeedhdc&,addr(Text$),len(Text$),area#,uformatflags&)

The uformatflags stand in the API-Help declared. Z.B. can you automatically whom Text inside the Rechtecks Center, word-Umbruch one- or switch off etc...

You can also The API TextOut() using, this is plainer To valet, bid but no Besonderheiten.

Font, colour and Brush müßen manually tuned go.
Voreingestellt are Windowsfont, Black and white.
stiftfarbe&=CreatePen(0,0,RGB(0,32,208)) colour
füllfarbe&=CreateSolidBrush(RGB(0,208,32)) Brushfarbe
font&=CreateFont(...) Font
old1&=SelectObject(prohdc&,stiftfarbe&)
old2&=SelectObject(prohdc&,füllfarbe&)
old3&=SelectObject(prohdc&,font&)
...  here can You your Text or Graphics settle
before You prohdc& freigibst, should You
The Objects but before again enable
SelectObject(prohdc&,old1)
SelectObject(prohdc&,old2)
SelectObject(prohdc&,old3)
DeleteObject(stiftfarbe&)
DeleteObject(füllfarbe&)
DeleteObject(font&)

I hope, it has itself no Error More eingeschlichen, the was now makeshift...

Greeting, Frank
 
04/19/04  
 



Hi,

here's one small Source, the shows, How one directly in ProSpeeds HDCs (Bitmaps) draw and Texts writes:

[...] 

One gelber circle becomes generiert, to whom one buntes Rundeck drawn becomes, into a Font set becomes. Each second changes the Gebilde its position.
For this, is too another Sprite on-screen.
it go some Files from the Source-Verzeichniss needed, the the ProSpeed-pkg beiliegt, whom draw-Source means best there copy

Greeting, Frank
 
04/19/04  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

6.186 Views

Untitledvor 0 min.
Wilfried05/20/16
Peter Max Müller06/09/15
Frank Vorholzer04/25/11

Themeninformationen

this Topic has 1 subscriber:

unbekannt (8x)


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