Uploading image
Michiel Spape
Michiel.Spape at nottingham.ac.uk
Mon Feb 22 11:27:35 UTC 2010
Hi,
Just to add to this excellent set of solutions by liw, *yes*, it is possible to use Canvas to load your image to the screen directly! Have a look at Canvas.LoadImage (eBasic help). This will also help you, if you want to do some later canvas work, in understanding offscreencanvas buffering and such, so it's not entirely useless.
That said, it is not enormously useful, unless you have some reason to use canvas in the first place (e.g. you need to draw all kinds of things to the screen ad hoc), as A: it's an awful lot of script, and B: you can't do more than with slides or even imageObjects. Certainly, E-Prime does not magically make your image of size 800 x 600 fit on a screen that is set in 640 x 480 without cropping the image (which seems exactly what you want?). I would like to stress the fact that cropping in E-Prime works sub-optimally (aliasing problems tend to cause nasty pixel artefacts) in any way and since any decent experimenter wants perfect stimulus material, I'm sure you want to avoid this.
Cheers,
Mich
Michiel Spapé
Research Fellow
Perception & Action group
University of Nottingham
School of Psychology
-----Original Message-----
From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of liwenna
Sent: 22 February 2010 09:13
To: E-Prime
Subject: Re: Uploading image
Hey Gilis,
The imageobject in the slideobject should be able to display your
image reliably in the way you wish it to be displayed... I don't think
the canvas object will solve your problem. But, as with everything in
research, make sure you've controlled all the necessary variables. I
am not too sure about what's going on but it seems to me that your
image is larger than either your display is, OR larger than the
displaysize e-prime uses....
Under start menu, settings, control panel; display settings, find the
current size of your display in pixels.... I use a 1280*1024 pixels
display for instance.
Next: you mention your image is very big.... is it's actual size (in
pixels) bigger than your display is??? (in my case that would be over
1280 or 1024 pixels on either dimension). Open the picture in viewer
and choose 'actual size' to see if it actually fits into your
screen... If not... use photoshop or gimp to resize it. You simply
should not use an imagesize that your display can't show ...
Third (and I actually think that this is where your problem lies):
when e-prime runs an experiment it resets the display settings to it's
own 'settings'. By default e-prime reconfigures the display to 640*480
pixels. This means that if your image is bigger than that.. it won't
fit on the screen. It also means that pretty much everything in your
experiment will look rather 'chunky'. Go to the properties of the
experiment object (e-prime logo at the top of your experiment tree),
choose devices; choose display and set the display size to the actual
size of your display.
I guess you'd better reset all the properties of the imageobject in
your slide (size 100% you can resize later, or even better: set it at
the actual pixel dimensions your image has) and set the x and y
coordinates to center and have a look at how e-prime displays your
image now.
I hope it will be fixed this way!
Best of luck,
liw
On Feb 22, 8:39 am, gilis <gilads... at gmail.com> wrote:
> Hi,
> I'm pretty "green" with Eprime and started to program with only
> recently. Anyway, I now have to program an experiment in which
> participants will have to make achoice and to indicate it in regard to
> the side of the image in which the stimuli have appeared. The stimuli
> is realy large one and so when I try to upload it to a slide object I
> always get the image presented truncated to different extents at the
> edegs of the screen. I tried to play with the size of the image in the
> slide object but I failed to get satisfaying results.
>
> So now my focus is on how the image can be uploaded through Canvas
> object but yet the knowledge I have in programing with Eprime turn it
> to a real sisyphean task and I don't even always what my mistakes were
> or way it didn't work, or if Canavas object is the only or the best
> solution.
>
> So, I would be very grateful to any one who could help me with this in
> any way.
>
> Regards
> Gili
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.
This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.
More information about the Eprime
mailing list