algorithmic modeling for Rhino
I understand that the image sampler will most likely be as complex if not more complex than the path mapper was (when I tried to crack that nut), however, I would like to create points in VB, then have those points check their color and/or brightness of an image either placed in rhino or put into the code.
Any suggestions?
Tags:
Hi Andy,
the ImageSampler uses a public Grasshopper class for fast and interpolated sampling. Have a look at Grasshopper.Kernel.GH_MemoryBitmap.
One important thing, you must always call the Release() method when you are done sampling, otherwise the bitmap will remain locked in memory and it won't be possible to access it again.
If you don't care about high performance, you can always use the GetPixel() method on any System.Drawing.Bitmap to get the colour of a pixel.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by