You're loading a new bitmap for every operation. This is extremely
slow since it means the bitmap has to be read from file and placed in
the memory for every single luminance operation.
I've uploaded a similar script which is a bit more optimized:

http://groups.google.com/group/grasshopper3d/web/Optimized_Bitmap_Luminance_Reader.ghx

--
David Rutten
Robert McNeel & Associates


On Nov 17, 4:05 pm, David Rutten <[EMAIL PROTECTED]> wrote:
> Dim Pic As New Birmap(bm)
>
> what's a "birmap"?
>
> --
> David Rutten
> Robert McNeel & Associates
>
> On Nov 17, 1:13 pm, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > Hello I am trying to reconstruct the VB.net Component from Marc
> > Hopperman (http://shift-lab.blogspot.com/)
>
> > But I am facing some problems, the Component I created refuses to
> > give out values for the pixel of the image I selected.
>
> > I also attached the file bitmap_retype_001.ghx to this group. Maybe
> > somebodyx can take a look into it and point me to my error, or send me
> > a working version of this block.
>
> > thank you

Reply via email to