For Programmers: Free Programming Magazines  


Home > Archive > Smalltalk > October 2004 > [VW7.2.1] ImageEditor causes virtual machine to crash in Linux









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author [VW7.2.1] ImageEditor causes virtual machine to crash in Linux
A-S Koh

2004-09-30, 8:59 pm

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
Vassili Bykov

2004-10-02, 8:56 pm

A-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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com