I saw you blogging about OpenGL texture scaling filters, was this related to Gosu? If so, did you join the club of people who sneakily set the MAX_FILTER using ruby-opengl? ;)
In either case, we have been discussing adding this feature natively on IRC a while ago. Let me know if you can come up with a good name for "scale by doing pixel repetition" as an alternative to :default and :tileable ;)
>In either case, we have been discussing adding this feature natively on IRC a while ago. Let me know if you can come up with a good name for "scale by doing pixel >repetition" as an alternative to :default and :tileable ;)
:retro ;)
Isn't its real name bilinear filter? What's wrong with :bilinear ?
Well, they are always scaled. :default would be the current hard_borders=false (just smoothen and blur everything), :tileable means smoothen everything except the edges, and the new flag would mean that everything is just handled by repeating pixels.
Yep, it's planned that it will indeed be Image#new(filename_or_rmagick, args = {}) :)
Hmm, I'll think about it, but so far I would prefer the name to be more practical (like :retro). Or just :interpolation=true/false? Hmm. Maybe I'll turn this into a poll later ;)
I fear that sounds even more as if the image would be tiled over the scaled area, which is why "nearest neighbor" is probably a better term than "pixel repeating" :)