OK,

I get it now.  If you look at ImageIOImageProcessorjnilib.m

When it applies the watermark it uses a dissolve filter. IMHO, I like this way better:

CIFilter *dissolveFilter = [CIFilter filterWithName:@"CISourceOverCompositing"];
[dissolveFilter setValue:watermarkImage forKey:@"inputImage"];
[dissolveFilter setValue:outputImage forKey:@"inputBackgroundImage"];
outputImage = [dissolveFilter valueForKey:@"outputImage"];

This way it uses the CISourceOverCompositing filter and you have control over how opaque you want to make the watermark when you create it in the image editor.

Jon

Begin forwarded message:

From: Johnny Miller <[email protected]>
Date: June 17, 2009 1:05:47 PM HST
To: Development WebObjects <[email protected]>
Subject: er.attachment.thumbnail.ImageIOImageProcessor && Watermark Files

Hi,

Has anyone attempted to use a watermark file in conjunction with er.attachment.thumbnail.ImageIOImageProcessor?

I'm having some strange results.

I'm passing a PNG with a solid background and text as the watermark -
If the background is black and the text is white - only the text of the watermark shows up. If the background is gray and the text is white - the watermark's background appears white and semi-transparent. The text is normal. If the background is white and the text is black - the watermark's background is white and opaque while the text does not appear at all i.e. you see through to the underlying image.

Also, it would be nice if you could specify where the watermark appears e.g. left | center | right and top | center | bottom.

Johnny Miller
Kahalawai Media Corp
w: www.kahalawai.com
e: [email protected]
p: 808.661.7962


Johnny Miller
Kahalawai Media Corp
w: www.kahalawai.com
e: [email protected]
p: 808.661.7962

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to