[Gambas-user] Using an Image in a PictureBox or help with my issue
Robert Moss
the.at.robert at ...626...
Wed Nov 26 05:01:45 CET 2008
I see. That's a little more complicated than I would have liked, but it's a
good solution. Is there anyway I can make myObj an alias for PicBox.Image ?
like
Dim myImg as Image
myImg = PicBox.Image
Would that make a copy or assign myImg PicBox.Image's reference
On Mon, Nov 24, 2008 at 9:58 AM, John Harrold <budgieboy52 at ...1601...>wrote:
> Hi
>
> Load the image into the picturebox like:
>
> PictureBox1.Picture = Picture.load("images/bookmark.png") (Here you use
> the
> path and filename to your image.)
>
> Then you can do the following:
>
> Message(Str(PictureBox1.Picture.Image[x, y]))
>
> Budgieboy
>
> 2008/11/23 Doriano Blengino <doriano.blengino at ...1909...>
>
> > Robert Moss ha scritto:
> > > I need to use an Image because i need to be able to get pixel data (ie
> > read
> > > the color values in an image) via Image[x,y].
> > > I would also like this image to be visible on screen, but the only box
> > i've
> > > found is PictureBox, which uses a picture, and it will not load an
> image.
> > > (and pictures dont do pic[x,y])
> > >
> > > So I'd like to do:
> > > 'PictureBox on form
> > > Dim i as Image
> > >
> > > i = Image.Load("Myfile.jpg")
> > >
> > > PicBox1.Picture = i 'this is where error comes obviously as it wants a
> > > picture, but i need to use images ^_^
> > >
> > May be... picbox1.picture = i.picture? (I didn't try)
> >
> > Cheers,
> >
> > --
> > Doriano Blengino
> >
> > "Listen twice before you speak.
> > This is why we have two ears, but only one mouth."
> >
> >
> > -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> > challenge
> > Build the coolest Linux based applications with Moblin SDK & win great
> > prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the
> world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
More information about the User
mailing list