Forum: Multimedia
Delphi
by xZise,
20. Sep 2010
Er hat bei der Subtraktion die zwei Werte vertauscht. Die musst du auch vertauchen, damit es passt. Es ist nämlich der Faktor wie hell das Pixel ist. 1 = 100 % = ursprüngliche Helligkeit und 0 = 0 % = komplett dunkel ist der Rückgabewert.
Jetzt gibt es ein Radius der bestimmt, ab wann es nicht mehr dunkler wird. Und es gibt auch einen Radius der bestimmt ab wann es nicht mehr heller wird.
...
Forum: Multimedia
Delphi
by xZise,
19. Sep 2010
Moin,
hast du sein Bugfix eingebaut:
MfG
Fabian
Forum: Multimedia
Delphi
by xZise,
18. Sep 2010
You could also apply this on an ellipse. The main idea is, to reduce the brightness depending on the distance to the edge.
So you have the width/height and the location (x, y). Now you must change the inner/outer radius from a absolute to a relative value.
Argh :P at the moment I'm too tired to explain this complete.
Fabian