Code Comments
Programming Forum and web based access to our favorite programming groups.I have a 800x600 bmp file. I read into VW as follows. ImageReader imageFromFile: 'colors.bmp' toClass: DummyTree selector: #colors I start ImageEditor, load the resource DummyTree class>>colors. VW disappears from the screen totally. Is there a better way to get a photo size *.bmp or *jpg into VW and view it there? Thanks, Koh
Post Follow-up to this messageA-S Koh wrote: > I have a 800x600 bmp file. I read into VW as follows. > > ImageReader imageFromFile: 'colors.bmp' toClass: DummyTree selector: > #colors > > I start ImageEditor, load the resource DummyTree class>>colors. VW > disappears from the screen totally. > > Is there a better way to get a photo size *.bmp or *jpg into VW and > view it there? > > Thanks, > Koh To view the image, you can do something like ApplicationWindow new component: (Wrapper on: DummyTree colors); open (I think in the good old days it would work even without the wrapper, but things change). As for the ImageEditor, "don't do that". ImageEditor can only work with small images, and even for those it's worse than primitive. If you want to edit the picture, you are better off doing that in a real image editor, and importing it afterwards. -- Vassili Bykov Tools Technical Lead, VisualWorks Engineering v b y k o v A T c i n c o m D O T c o m http://www.cincomsmalltalk.com/userblogs/vbykov
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.