Image woes

Jim Ault JimAultWins at yahoo.com
Wed Nov 15 01:33:42 EST 2006


the 'last image' refers to the image with the largest number, just like the
'last card' is the card with the highest number, last char, last item, last
word.

Card 1 should make no difference, except for something that interferes.

If the data is the binary jpg or png file, then

put the cpPngBinary of this card into image "disp"
or
put the cpPngBinary of this card into the last image
set the width of the last image to 137
set the height of the last image to 203
set the loc of the last image to the loc of the first image


Hope this helps


Jim Ault
Las Vegas

On 11/14/06 10:25 PM, "Scott Kane" <scott at cdroo.com> wrote:

> Hi folks,
> 
> I'm working on a quick and dirty little project and am using Trevor Devore's
> "empDB" sample project as the basis.  The problem I'm having is that the
> stack I need to use must have tool buttons with images.  Now the problem is
> that Trevor uses the "last image" variable to retrieve the data from a
> custom property.  The result is that the first card in the stack loses the
> plot and the image ends up taking over the entire card - instead of sizing
> itself nicely inside the button.  This only happens with the first card -
> the subsequent cards size the image perfectly.  I'd prefer to store the
> image in the card in this instance but that's proving to be somewhat
> difficult given the behaviour of the first card.  Is there something I'm
> missing with the "last Image" variable or indeed the custom property?  I'm
> not sure how to retrieve the data directly from the custom property and size
> it, there doesn't seem to be anything attached to it that I can use to
> resize.  Of course I could be completely wrong on that.
> 





More information about the Use-livecode mailing list