Autor Beitrag
eniac
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 75

Win 98, Win XP, SuSE Linux 9.0
D3 Prof
BeitragVerfasst: Mi 20.10.04 19:06 
Servus,

wie kann ich z.B. auf einem Image eine Linie zeichnen die in der Komplimentärfarbe des Hintergrundes erscheint (als Beispiel: an der Stelle, wo der Hintergrund rot ist, wird die Linie grün, da wo der Hintergrund orange ist blau)!

Ich weiß schon dass ich über

ausblenden Delphi-Quelltext
1:
Gegenfarbe:=Farbe xor $00FFFFFF;					


die Komplimentärfarbe bekomme; ich hab alleridngs keine Lust jeden Pixel immer wieder auf die Gegenfarbe zu kontrollieren :(

Bin für alle Anregungen dankbar!
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Mi 20.10.04 19:22 
Hi,

Linien machst du mit dem Canvas; Pen.Color musst du auf die entsprechende Farbe setzen. Wegen den Pixel: Scanline ist ein heißer Tip.

AXMD
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mi 20.10.04 19:34 
Guck dir in dem Zusammenhang auch mal Pen.Style an.
Damit kannst du automatisch mit der Komplementär-Farbe des Bildes zeichnen lassen.
Näheres siehe Delphi OH.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
eniac Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 75

Win 98, Win XP, SuSE Linux 9.0
D3 Prof
BeitragVerfasst: Mi 20.10.04 19:44 
meinst du eines von diesen?
psSolid, psDash, psDot, psDashDot, psDashDotDot, psClear, psInsideFrame

Mehr hat mein Delphi nicht zu bieten (ich arbeite leider nur mit D3Prof)
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mi 20.10.04 20:01 
:oops: Vertan, meinte TPen.Mode:

ausblenden TPen.Mode
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
pmBlack         Immer schwarz
pmWhite         Immer weiß
pmNop           Unverändert
pmNot           Komplementärefarbe zur Hintergrundfarbe der Zeichenfläche
pmCopy          Stiftfarbe der Eigenschaft Color
pmNotCopy       Komplementärfarbe zur Stiftfarbe
pmMergePenNot   Kombination aus Stiftfarbe und Komplementärfarbe der Zeichenfläche
pmMaskPenNot    Kombination von Farbanteilen, die sowohl in der Stiftfarbe als auch in der Komplementärfarbe der Zeichenfläche enthalten sind.
pmMergeNotPen   Kombination von Hintergrundfarbe der Zeichenfläche und komplementärer Stiftfarbe
pmMaskNotPen    Kombination von Farbanteilen, die sowohl im Hintergrund der Zeichenfläche als auch in der komplementären Stiftfarbe enthalten sind.
pmMerge         Kombination aus Stiftfarbe und Hintergrundfarbe der Zeichenfläche
pmNotMerge      Komplementärfarbe zu pmMerge: Kombination aus Stiftfarbe und Hintergrundfarbe der Zeichenfläche
pmMask          Kombination von Farbanteilen, die sowohl in der Stiftfarbe als auch in der Hintergrundfarbe der Zeichenfläche enthalten sind.
pmNotMask       Komplementärfarbe zu pmMask: Kombination von Farbanteilen, die sowohl in der Stiftfarbe als auch in der Hintergrundfarbe der Zeichenfläche enthalten sind.
pmXor           Kombination von Farbanteilen, die entweder nur im Stift oder nur im Hintergrund der Zeichenfläche enthalten sind, aber nicht in beiden.
pmNotXor        Komplementärfarbe zu pmXor: Kombination von Farbanteilen, die entweder nur im Stift oder nur im Hintergrund der Zeichenfläche enthalten sind, aber nicht in beiden.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
eniac Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 75

Win 98, Win XP, SuSE Linux 9.0
D3 Prof
BeitragVerfasst: Mi 20.10.04 21:28 
thx

genau das brauchte ich :D