List Info

Thread: Opening jpg images in Eiffel 6




Opening jpg images in Eiffel 6
country flaguser name
Australia
2007-04-01 02:31:54

Hello Eiffel experts,
after only attempting very trivial tasks in Eiffel previously, I've decided
the best way to learn Eiffel is to try something a little more substantial.
The first step in my project is to write a Vision2 app that is able to open
and view a .jpg file. Second I'd like to be able to clip it then save the
.jpg file and third I'd like to be able to view the exif info. Further steps
will be dependent on me getting this far ;)
Looking through EiffelMedia I see that some of the examples load .jpg files,
for example lovely loads matterhorn.jpg as a background image. However, the
EiffelMedia 0.9 examples don't work with the version of EiffelStudio I have
installed (EiffelStudio 6 (6.0.6.7183 GPL Edition)). I get the following
message when I try to compile:
Error code: VYCQ(2)
Error: current class conforms to target of conversion query.
What to do: make sure current class does not conform to target of
conversion query or remove the target from the type list.

Class: EM_VECTOR4F
Feature name: to_reference
Conversion type: EM_VECTOR4F_REF

I see four options:
1) Go back to using an older version of Eiffel
2) Wait until I can get EiffelMedia working with ES6 (not sure if this is my
problem or a result of ES 6 implementing new language concepts).
3) Find another library function to convert .jpgs into pixmaps
4) Write my own functions to load and save .jpgs

Any advice appreciated.

Thanks

__._,_.___
.

__,_._,___
RE: Opening jpg images in Eiffel 6
country flaguser name
United States
2007-04-01 17:00:48

> The first step in my project is to write a Vision2 app that
> is able to open and view a .jpg file. Second I'd like to be

Using EV_PIXEL_BUFFER you can actually load a .jpg on both Unix and Windows.
That might help you however it does not extract the meta information in it.

Regards,
Manu

__._,_.___
.

__,_._,___
Re: Opening jpg images in Eiffel 6
country flaguser name
United States
2007-04-02 07:55:33


Thanks for all of the replies.

>From what I understand:
1) trying to use EiffelMedia and Vision2 combined will require more advanced
skills than I have at the moment. I had already tried the deleting of
to_reference: {EM_VECTOR4F_REF, ANY}, but the C compilation failed. I
thought because of my deletions but perhaps something is not quite set up
right. After trying again I notice the failure is in the linking, so my
setup is probably the culprit.
2) I don't need to use EiffelMedia because I can use EV_PIXEL_BUFFER to load
the image from a .jpg file. I thought the exif data would be something I
have to work through myself.
3) I should look at EM_EV_WIDGET.

--
View this message in context: http://www.nabble.com/Opening-jpg-images-in-Eiffel-6-tf3500279s16963.html#a9790197
Sent from the Eiffel Software Users mailing list archive at Nabble.com.

__._,_.___
.

__,_._,___
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )