GraphicPlus icon indicating copy to clipboard operation
GraphicPlus copied to clipboard

Option for Nearest-neigbor interpolation?

Open ondrej-vesely opened this issue 3 years ago • 0 comments

Hi David,

First of all thanks for the this great work on Graphic+ and other plugins from the "post-Aviary line". They are all genuinely useful and well thought out packages 😎. I've come to depend on them quite a lot lately, particularly the Graphic+ and Bitmap+ for exporting raster maps of spatial data processed in Grasshopper.

One thing that my particular use case would benefit from, would be an option to use nearest neighbor interpolation when rasterizing the Graphic+ drawings. I've sort of hacked my way around the issue by generating the Graphic+ bitmaps at very high resolutions and then downsampling them using nn-interpolation from Bitmap+, but it obviously doesn't work perfectly (and adds unnecessary rendering time).

I'm not sure how feasable is it to add this option, take it as just a suggestion. Maybe during the summer once I have more free time I could even look into this myself if you are open to accepting PRs?

ondrej-vesely avatar May 08 '22 13:05 ondrej-vesely