Forum: Multimedia
Delphi
by WojTec,
19. Sep 2010
X multiply something is nice, I added support for ellipse based on image oriantation. Thanks guys :)
My current slow methed I told yesterday (based on blured shape) - do you know method fast like the one by @sx2008, but with any shape (rectangle, rounded rectangle, ellipse and any other)?
PS: @sx2008, your algorithm is named?
Forum: Multimedia
Delphi
by WojTec,
18. Sep 2010
You are great! This is much faster than my method: I draw white shape on black or grey (or in other grey scale color) background, apply blur and finally blend with image - effect is powerful, but blur part is very slow if greater radius is used.
Can I ask yet one more question? Your nice brightness function generates circle - is possible to use ellipse in image orientation?
Forum: Multimedia
Delphi
by WojTec,
18. Sep 2010
Ah, of course, that's my mistake :D
Ok, working, but not exactly as should - darker should be near edges, not center as is now ;)
Forum: Multimedia
Delphi
by WojTec,
18. Sep 2010
This is what I have:
function VignetteBrightness(X, Y: Single): Single;
var
distance: Single;
inner_radius, outer_radius: Single;
begin
inner_radius := 50;
outer_radius := 150;
Forum: Multimedia
Delphi
by WojTec,
16. Sep 2010
It's clear all, but not how to implement Gaussian function, I don't understand it too much :cry:
function TwoDimensionalGaussian(X, Y: Single): Single;
var
a, b, c: Single;
begin
end;
I don't know how to "fill" this function. I'm also not sure parameters and result types, Single are correct? :(
Forum: Multimedia
Delphi
by WojTec,
15. Sep 2010
Sorry, I used bad word :cry: I mean vignette. I now corrected.
Forum: Multimedia
Delphi
by WojTec,
15. Sep 2010
Hello. I want to draw vignette effect, but don't have idea how to do this? For graphics I'm using GR32. Could you help?