AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Multimedia Delphi text mit undelphix anzeigen
Thema durchsuchen
Ansicht
Themen-Optionen

text mit undelphix anzeigen

Ein Thema von smc · begonnen am 28. Jun 2006 · letzter Beitrag vom 28. Jun 2006
Antwort Antwort
smc

Registriert seit: 21. Dez 2005
49 Beiträge
 
#1

text mit undelphix anzeigen

  Alt 28. Jun 2006, 10:39
kann mir jemand sagen wie ich text auf meinem dxdraw anzeigen lassen kann?
Mit Bildern geht das ja problemlos!
  Mit Zitat antworten Zitat
ijcro

Registriert seit: 30. Mär 2006
37 Beiträge
 
Delphi XE Professional
 
#2

Re: text mit undelphix anzeigen

  Alt 28. Jun 2006, 20:46
Hello.

You can use drawing throught Surface.Canvas.TextOut like in prototype demo in undelphix 1.07a

Delphi-Quellcode:
  { Draw FrameRate }
  with DXDraw.Surface.Canvas do
  begin
    try
      Brush.Style := bsClear;
      Font.Color := clWhite;
      Font.Size := 10;
      Textout(3, 3, 'FPS: '+inttostr(DXTimer.FrameRate));
      if doHardware in DXDraw.NowOptions then begin
        Textout(3, 14, 'Device: Hardware');
        Textout(3, DXDraw.Height-16-14, 'Change device mode to software press SPACE.')
      end
      else begin
        Textout(3, 14, 'Device: Software');
        Textout(3, DXDraw.Height-16-14, 'Change device mode to hardware press SPACE.')
      end;
      if doFullScreen in DXDraw.NowOptions then
        TextOut(3,DXDraw.Height-16,'For windowed mode press ALT+Enter.')
      else
        TextOut(3,DXDraw.Height-16,'For fullscreen press ALT+Enter.');
    finally
      Release; {  Indispensability  }
    end;
  end;

  DXDraw.Flip;
or you can create bitmap, drawing throught its canvas your text, put into DIB or DXImageList and and rendering it directly from this...
ijcro
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 14:00 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz