Autor Beitrag
dontjo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17

win xp
delphi 6 und 7
BeitragVerfasst: Sa 08.03.08 18:15 
Hallo, vielleicht, weiß ja hier jemand weiter,

hab ein Image(siehe Anhang) ind das Senkrechte Informatik soll gespiegelt werden,

kein Plan, wie das funktionieren könnte????

Vielleicht habt ihr ja ne idee!

thx
Einloggen, um Attachments anzusehen!
_________________
alles wird
Hidden
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2242
Erhaltene Danke: 55

Win10
VS Code, Delphi 2010 Prof.
BeitragVerfasst: Sa 08.03.08 18:22 
Hi,

Auch hier: Wo liegt das Problem? Kennst du dich mit TImage oder womit du das auch immer machen willst aus?

mfG,

_________________
Centaur spears can block many spells, but no one tries to block if they see that the spell is a certain shade of green. For this purpose it is useful to know some green stunning hexes. (HPMoR)
dontjo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17

win xp
delphi 6 und 7
BeitragVerfasst: Sa 08.03.08 18:36 
nee, ich kenn mich eben nicht damit aus, deshalb bin ich ja hier,

Ich habe es soweit programmiert, dass die beiden Texte zu sehen sind, auch gedreht und unter einander, jetzt müsste ich es nur noch spiegeln, und ich dachte, das geht vielleicht mit 2 3 Befehlen

confused :)

_________________
alles wird
ub60
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 765
Erhaltene Danke: 130



BeitragVerfasst: Sa 08.03.08 18:53 
Wie hast Du die Texte denn gedreht? Ich nehme mal an, mit zwei ineinander verschachtelten Schleifen, oder?
Und genau so bekommst Du auch die Spiegelung hin.

ub60
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Sa 08.03.08 18:55 
du spiegelst den schriftzug und drehst in dann wäre mein vorschlag.

zum spiegel musst du einfach nur von links nach rechts die pixel einlesen und dann von rechts nach links setzen. Am besten mit scanline.

zum drehen gibt n codesnippet von mir in der Libary. ->*Link*<-

lg elundril

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Sa 08.03.08 18:58 
Hallo,

oder Du nutzt CopyRect mit entsprechend gesetzten Koordinaten.

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
dontjo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17

win xp
delphi 6 und 7
BeitragVerfasst: Sa 08.03.08 19:18 
versteh ich zwar nicht, aber trotzdem danke
das ist ja eigentlich keine Grafik sondern nur der Text und deshalb geht das mit den Pixeln ja auch nicht

vielleicht fällt ja noch jemanden ein einfacher weg ein

thx

_________________
alles wird
Hidden
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2242
Erhaltene Danke: 55

Win10
VS Code, Delphi 2010 Prof.
BeitragVerfasst: Sa 08.03.08 19:25 
user profile icondontjo hat folgendes geschrieben:
versteh ich zwar nicht, aber trotzdem danke
das ist ja eigentlich keine Grafik sondern nur der Text und deshalb geht das mit den Pixeln ja auch nicht

vielleicht fällt ja noch jemanden ein einfacher weg ein

thx

Schreib doch den Text in ein Bild und spiegle das.

_________________
Centaur spears can block many spells, but no one tries to block if they see that the spell is a certain shade of green. For this purpose it is useful to know some green stunning hexes. (HPMoR)
ub60
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 765
Erhaltene Danke: 130



BeitragVerfasst: Sa 08.03.08 19:32 
user profile icondontjo hat folgendes geschrieben:

Ich habe es soweit programmiert, dass die beiden Texte zu sehen sind, auch gedreht und unter einander,

Könntest Du mal die Sourcen posten, wie Du das gemacht hast?
Dann sehen wir das Problem ev. etwas besser.

ub60
dontjo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17

win xp
delphi 6 und 7
BeitragVerfasst: Sa 08.03.08 19:36 
ok:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
procedure TForm1.BitBtn5Click(Sender: TObject);
var s:string;
    x,y:integer;
begin
  with image5.Canvas do
  begin
    s:='Informatik';
    brush.Color:=clyellow;
    font.Color:=clblue;
    font.Size:=18;
    //font.Name:='Comic Sans MS';
    font.Name:=screen.Fonts[5];
    textout(25,5,s);
    for x:=0 to TextWidth(s) do
      for y:=0 to TextHeight(s) do
      begin                                       //vorne  Position im Image
        Pixels[100-y,35+x]:=Pixels[22+x,10+y];  //hinten Koo von TextOut
      end;
  end;
end;


so sieht es bei mir in delphi aus, dann halt mit nem button und nem 200*200 image

Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt

_________________
alles wird
dontjo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17

win xp
delphi 6 und 7
BeitragVerfasst: So 09.03.08 10:02 
Ich hab es selbst hinbekommen, trotzdem danke für eure Mühe.

_________________
alles wird
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: So 09.03.08 11:14 
kannst du vielleicht deine lösung posten?? so können auch andere davon lernen.

lg elundril

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: So 09.03.08 11:42 
Hallo,

so geht es mittels CopyRect, auf Canvas der Form gezeichnet:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
var ZielRect,QuellRect : TRect; 
    s : String; 
begin 
  Canvas.Font.Size := 30; 
  s := 'Spiegelschrift geht so ???'; 
  Canvas.TextOut(0,0,s); 
  QuellRect.Left := Canvas.TextWidth(s);//<----  Left ist größer 
  QuellRect.Top := 0; 
  QuellRect.Right := 0;//<----                   als Right !!! 
  QuellRect.Bottom := Canvas.TextHeight(s); 
  ZielRect.Left := 0; 
  ZielRect.Top := 50; 
  ZielRect.Right := Canvas.TextWidth(s); 
  ZielRect.Bottom := Canvas.TextHeight(s)+50; 
  Canvas.CopyRect(ZielRect,Canvas,QuellRect);
Einloggen, um Attachments anzusehen!
_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
dontjo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17

win xp
delphi 6 und 7
BeitragVerfasst: So 09.03.08 12:50 
procedure TForm1.BitBtn5Click(Sender: TObject);
var s:string;
x,y:integer;
begin
with image5.Canvas do
begin
s:='Informatik';
brush.Color:=clyellow;
font.Color:=clblue;
font.Size:=18;
//font.Name:='Comic Sans MS';
font.Name:=screen.Fonts[5];
textout(25,5,s);
for x:=0 to TextWidth(s) do
for y:=0 to TextHeight(s) do
begin //vorne Position im Image
Pixels[100+y,35+x]:=Pixels[22+x,10+y]; //hinten Koo von TextOut
end;
end;
end;

Man musste hier einfach nur die Vorzeichen vertauschen, weiß auch nicht, wie ich auf die idee gekommen bin, das auszuprobieren.

Aber es klappt

_________________
alles wird