[squeak-dev] Who understand bilinear interpolation for reducing image size?

Bert Freudenberg bert at freudenbergs.de
Wed Dec 10 10:54:57 UTC 2014


On 09.12.2014, at 20:29, tim Rowledge <tim at rowledge.org> wrote:
> 
> On 09-12-2014, at 1:59 AM, Bert Freudenberg <bert at freudenbergs.de> wrote:
>> 
>> I would preserve the output (only 0 and 255 for alpha) but extend the inputs: instead of comparing input pixel value to 0 to determine if it's transparent, compare the alpha. I think if the pixel value is a sqInt then comparing "pix < 0" would work, although doing an unsigned compare with 16r7F000000 would be less obfuscated.
>> 
> I guess something like that is probably best but I do dislike fudges of this sort.

It's not fudging, it's preserving expected behavior, while making it work over a wider range of inputs.

- Bert -



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4142 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20141210/e652959b/smime.bin


More information about the Squeak-dev mailing list