Image export

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
keyless
Posts: 211
Joined: Wed Dec 12, 2007 11:21 pm

Image export

Post by keyless » Fri Jan 16, 2009 9:27 am

I resize an image so it fits on a card, but when I export it I want it to be full original size. I have two options for getting the image out, one sets the clipbardData to the image, the other is an export of the image to a jpg file.

The clipboard process works fine, the image pastes as the original image size, not the size resize for the card.

The export image however, gives me a file of the resized image.

How do I export the file at original size?

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn » Fri Jan 16, 2009 10:15 am

Hi Keyless,

one way to do it is

Code: Select all

    create invisible image "tempImage"
    set the text of image "TempImage" to the text of image "ResizedImage"
    export image "tempImage".....
    delete image "TempImage"
you could also get the width and hight of the resized image and reset the image to the original size and export it. I think the easiest way is to create a tempImage.
hth
Bernd

keyless
Posts: 211
Joined: Wed Dec 12, 2007 11:21 pm

Post by keyless » Fri Jan 16, 2009 6:12 pm

bn wrote:Hi Keyless,

one way to do it is

Code: Select all

    create invisible image "tempImage"
    set the text of image "TempImage" to the text of image "ResizedImage"
    export image "tempImage".....
    delete image "TempImage"
you could also get the width and hight of the resized image and reset the image to the original size and export it. I think the easiest way is to create a tempImage.
hth
Bernd

Works perfectly. Thank you very much for that.

Post Reply