| |
|
|
| 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 |
|
|
| |
|
|
|
| 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 |
|
|
| |
|
|
|
| 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 |
|
|
| |
|
|
|
| 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 |
|
|
| |
|
|
|
| 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 |
|
|
| |
|
|
|
| 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 |
|
|
| |
|
|
|
| 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 |
|
|
| |
|
|
|
| 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 |
|
|
| |
|
|