Autor Beitrag
Marcel_Raeder
Hält's aus hier
Beiträge: 8



BeitragVerfasst: Mi 15.01.03 13:44 
wollte ich nur mal wissen :-) ,...... muss nämlich nun für die schule ein solchiges machen , eine "unit stift" habe ich bereits vom lehrer bekommen ,..... ich frag mich wie man das so mit dem kreis wie bei paint hinbekommt , also das man den kreis größer und kleiner ziehen kann mit der maus,..... könnt ihr mir vieleicht weiterhelfen , oder habt ihr selbst schonmal ein MALPROGRAMM programmiert ???


Hoffe auf schnelle antwort ,... cu

euer Marcel
Sven
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 314


D6 Ent, K3 Pro (patched)
BeitragVerfasst: Mi 15.01.03 13:48 
Im Verzeichnis von Delphi findest Du unter Demos\Doc\GraphEx ein gutes Beispiel.

Sven

_________________
MDK 9.1, Kernel 2.4.21, KDE 3.1 Kylix 3 Pro (patched), nutze aber auch Windows
Popov
Gast
Erhaltene Danke: 1



BeitragVerfasst: Mi 15.01.03 14:20 
Alternativ kannst du dir TCanvas angucken. Canvas ist die Leinwand auf der zu zeichnest. Sie enthällt alle Zeichnenfunktionen die Delphi bietet:

Beispiel:

PaintBox1.Canvas.Ellipse(10, 10, 80, 80);

Ein Kreis.

Aber vorsicht. PaintBox hällt seinen Inhalt nicht im Speicher fest, sondern zeichnet direkt auf der Oberfläche. Jedes Fenster was sich davorschiebt wird das Bild löschen.
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: Mi 15.01.03 14:29 
mal halt einfach in nen image!

z.B.
ausblenden Quelltext
1:
image1.canvas.rectangle(10,10,100,100);					


Fiji-Fighter
torstenheinze
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 461



BeitragVerfasst: Mi 15.01.03 16:06 
das mit dem image1 geht nur, wenn als bild eine bitmap vorliegt
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Mi 15.01.03 16:44 
Hallo,
torstenheinze hat folgendes geschrieben:
das mit dem image1 geht nur, wenn als bild eine bitmap vorliegt

er kann ein leeres Image nehmen und dadrauf zeichnen. Dies ist im grunde ein leeres Bitmap. Das hat natürlich den vorteil, das er seine Zeichnung auch speichern kann.

Gruß
Klabautermann
torstenheinze
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 461



BeitragVerfasst: Mi 15.01.03 17:05 
das mit dem speichern, da bin ich noch gar net drauf gekommen, klever! :roll:

das mit der leeren, das wuste ich schon
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: Mi 15.01.03 20:34 
außerdem kann man auch jpg's laden, wenn man die vorher umwandelt...

zum speichern als jpg kann man auch wieder das Format umwandeln...

Fiji-Fighter