Hi, I've been trying to read individual pixels from an image in an nscepicturebox. Even though I can get a screen grab and draw a pixel using the drawpoint method, both ce and nsbasic give an error that the picturebox doesn't support a 'pixel' property or method.
I've put the relevant code below, and I'd be very grateful if someone could tell me where I'm going wrong: Sub grab_Click() Dim p picbox.ClipTop=31 picbox.ClipLeft=5 picbox.ClipWidth=230 picbox.ClipHeight=110 picbox.Clip=True picbox.CaptureScreen picbox.DrawPoint(10,10) p=picbox.pixel(10,10) <- Error here Msgbox p End Sub AddObject "NSCEPictureBox.NSCEPictureBoxCtrl.1", "picbox", 5, 150, 230, 110 picbox.borderstyle=1 Many thanks, Andrew. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nsb-ce" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nsb-ce?hl=en -~----------~----~----~----~------~----~------~--~---
