Autor Beitrag
hathor
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 27.10.07 11:01 
Hi,

habe hier ein Rätselbild - welche Person versteckt sich hier?
Kleiner Hinweis: es ist kein international gesuchter Krimineller...


EDIT(20080327):@hathor: Womit hast Du das Bild "spiralisiert"? IRFANVIEW.
Einloggen, um Attachments anzusehen!


Zuletzt bearbeitet von hathor am Do 27.03.08 12:15, insgesamt 1-mal bearbeitet
Chryzler
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1097
Erhaltene Danke: 2



BeitragVerfasst: Sa 27.10.07 12:25 
Keine Ahnung wer das ist. :nixweiss:
Einloggen, um Attachments anzusehen!
Calculon
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 676

Win XP Professional
Delphi 7 PE, Delphi 3 PRO
BeitragVerfasst: Sa 27.10.07 12:28 
Sieht aus wie Hillary Clinton :gruebel:

@Chryzler: Wie hast du "Entspiralisiert"?

Gruß

Calculon
--
Chryzler
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1097
Erhaltene Danke: 2



BeitragVerfasst: Sa 27.10.07 12:34 
user profile iconCalculon hat folgendes geschrieben:
@Chryzler: Wie hast du "Entspiralisiert"?

Mit IrfanView, einfach eine entgegengerichtete Spirale.
hathor
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 27.10.07 13:11 
Gut gemacht - ich habe es gleich gewusst, dass man auf das BKA verzichten kann (hätten DIE uns nur gleich gefragt...)
Ja, es ist die nächste amerikanische Präsidentin - HILLARY CLINTON !!!
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Sa 27.10.07 17:08 
Mit Gegenspirale hab ichs auch probiert, hat aber in PhotoFiltre nicht funktioniert.

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
ub60
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 765
Erhaltene Danke: 130



BeitragVerfasst: Sa 27.10.07 21:41 
Hallo Leute,

das ist doch ein Delphi-Forum. Also ein kleines Rätsel:
Proggt die Antispirale doch mal in Delphi.
Es geht (siehe Anhang). Echt in Delphi, kein Fake.

ub60
Einloggen, um Attachments anzusehen!
hathor
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 27.10.07 22:00 
@UB60:

Hast Du den Code schon vorher gehabt oder erst "gestrickt"?

Kriegen wir den auch ???
ub60
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 765
Erhaltene Danke: 130



BeitragVerfasst: Sa 27.10.07 22:03 
@hathor:

Hab ich vorhin erst "gestrickt", da hat mich der Ehrgeiz gekitzelt.
Aber den Quelltext gibts erst morgen, ich will doch niemandem das eigene Erfolgserlebnis nehmen :lol: :lol:

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



BeitragVerfasst: So 28.10.07 18:22 
Hallo Rätselfreunde,

hier der versprochene Code. Ich hatte ja angenommen, dass es noch ein paar Mitstreiter gibt, aber war wohl nicht.
Der Code setzt zwei entsprechend große Images (jeweils in einer ScrollBox) voraus, wobei im ersten das zu drehende Bild ist. Über Faktor kann man den Drehwinkel beeinflussen, der angegebene Wert zum "Entspiralisieren" wurde durch Probieren ermittelt.
Der Code lässt sich noch optimieren, wenn man statt dem Pixels-Befehl der Canvas in eine BitMap schreibt, aber dann wäre der Code größer geworden.

ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
var x, y, xalt, yalt, Breite, Hoehe : Integer;
    Winkel, Faktor, Radius : Real;
    Farbe : TColor;
begin
  Faktor:=1.305;   // durch probieren ermittelt
  Breite:=Image1.Width;
  Hoehe:=Image1.Height;
  for y:=0 to Breite do
   begin
    for x:=0 to Hoehe do
      begin
        // Abstand des Pixels zum Mittelpunkt  
        Radius:=Sqrt(Sqr(Breite div 2-x)+Sqr(Hoehe div 2-y));
       // Winkel zwischen x-Achse und Radiuslinie 
        if x<>Breite div 2
          then Winkel:=arctan((Hoehe div 2-y)/(x-Breite div 2))
          else if y<Hoehe div 2
            then Winkel:=-Pi/2
            else Winkel:=Pi/2;
        if x>Breite div 2
          then Winkel:=Winkel+Pi;
        // Winkel ermitteln, von wo ich das Pixel hole, 
        // je größer der Radius um so größer der Winkel -> soll ja ne Spirale werden
        Winkel:=Winkel+pi/180*Radius*Faktor;
        // dazugehörige x- und y- Koordinaten ermitteln
        xalt:=Round(-cos(Winkel)*Radius);
        yalt:=Round(sin(Winkel)*Radius);
        // Farbe auslesen
        Farbe:=Image1.Canvas.Pixels[Breite div 2+xalt,Hoehe div 2+yalt];
        if Radius>=Breite div 2
          then Image2.Canvas.Pixels[x,y]:=clWhite // damit man sieht, was gedreht wird, sonst clBlack
          else Image2.Canvas.Pixels[x,y]:=Farbe;
      end;
    Application.ProcessMessages;
   end;
  Image2.Picture.SaveToFile('Rätselbild3.bmp');

Viel Spaß damit!

@hathor: Womit hast Du das Bild "spiralisiert"?
@Chryzler: Mein Irfanview hat keine Spirale, was ist das für ein Plugin?

ub60
Calculon
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 676

Win XP Professional
Delphi 7 PE, Delphi 3 PRO
BeitragVerfasst: So 16.11.08 21:12 
user profile iconhathor hat folgendes geschrieben Zum zitierten Posting springen:
Gut gemacht - ich habe es gleich gewusst, dass man auf das BKA verzichten kann (hätten DIE uns nur gleich gefragt...)
Ja, es ist die nächste amerikanische Präsidentin - HILLARY CLINTON !!!

Wollte nur mal kurz diesen alten Thread rauskramen, um deine seherischen Fähigkeiten in aller Öffentlichkeit bloß zu stellen :mrgreen:.

Schöne Grüße
--

_________________
Hallo Mutti
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: Mo 17.11.08 00:03 
genau das is mir beim jetztigen durchlesen auch als erstes aufgefallen! :mrgreen:

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.