Vector Graphics and Imbedded Image Editing

Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Randall Lee Reetz
Posts: 28
Joined: Fri Sep 07, 2007 2:04 am
Contact:

Vector Graphics and Imbedded Image Editing

Post by Randall Lee Reetz » Sun Dec 19, 2010 10:07 pm

I am a SuperCard user from way back. One of the afforcances I use is the ability to assign an image file on disc or image stored in a holder (user prop or variable or resource) to be displayed within the interior of a vector graphic (oval, rectangle, polygon). Is this available (and fast) in LiveCode/RunRev?

Another tool I make use of frequently is SuperCard's ability to warp and rotate an image held in a vector graphic's "quad". This allows (though not intuitively by any means) the programmer to force an image to be stretched and wrapped to the current shape of a four sided polygon (or any four x/y coordinate pairs).

I would also like to be able to set the color of the fill and boundary of a vector graphic to any color available in the current color space (2,4,8,16,24,32 or 64 bits) as RGB, HSV, HEX, WEB, etc. format. In SuperCard, the color space is limited to the old old old 256 color 8bit (CLUT) scheme.

I also need to be able to manipulate bitmaps (get and set the color of individual pixels, apply filter transforms on [any defined region of the] image [hue, brightness, saturation, blur/sharpness, invert, posterize, edges, color space remap, dither, scale, sphereize, pinch, bloat, opacity, etc.] and multiple image blending [normal, multiply, screen, overlay, lighten, darken, exclusion, hue, saturation, color, luminosity, etc.]).

Would be great if I could apply quicktime, quartz, (or equivalent) filters to images and use other vector graphics as selection masks within images.

What are my prospects using LiveCode to effect the above control over images via code control (not within editor)?

Thanks,

Randall Lee Reetz
What matters is what matters; knowing what matters and how to know it, matters the most.

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

Re: Vector Graphics and Imbedded Image Editing

Post by bn » Mon Dec 20, 2010 12:08 pm

Hi Randall,

Wilhelm Sanke does a lot of the stuff you are asking for. Have a look at this thread and follow the links.

http://runtime-revolution.278305.n4.nab ... 39534.html

You can actually do a lot with 'imageData' in Livecode -> dictionary.
I would also like to be able to set the color of the fill and boundary of a vector graphic to any color available in the current color space (2,4,8,16,24,32 or 64 bits) as RGB, HSV, HEX, WEB, etc. format. In SuperCard, the color space is limited to the old old old 256 color 8bit (CLUT) scheme.
If I understand what you want you can do this easily for 24 bit color in Livecode. As far as the RGB, HSV, HEX, conversion is concerned there are converters/Libraries. Look at RevOnline. There is

for Quartz have a look at: http://revonline2.runrev.com/stack/261/ ... Parameters
What are my prospects using LiveCode to effect the above control over images via code control (not within editor)?
you can do all this via script.

regards

Bernd

As far as speed is concerned: it is not really fast. It all depends on the size of the images and what effect you want to apply.

Randall Lee Reetz
Posts: 28
Joined: Fri Sep 07, 2007 2:04 am
Contact:

Re: Vector Graphics and Imbedded Image Editing

Post by Randall Lee Reetz » Tue Dec 21, 2010 12:26 am

In the leading post in this thread I asked:
Another tool I make use of frequently is SuperCard's ability to warp and rotate an image held in a vector graphic's "quad". This allows (though not intuitively by any means) the programmer to force an image to be stretched and wrapped to the current shape of a four sided polygon (or any four x/y coordinate pairs).
This isn't a question about the warping of a polygon. I can do that easy. I am asking if LiveCode supports scriptable warping, stretching, and rotation of an image held within a polygon or quad? Is this functionality controllable via xTalk in LiveCode?

Randall Lee Reetz
What matters is what matters; knowing what matters and how to know it, matters the most.

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

Re: Vector Graphics and Imbedded Image Editing

Post by bn » Tue Dec 21, 2010 9:49 am

Hi Randall,
This isn't a question about the warping of a polygon. I can do that easy. I am asking if LiveCode supports scriptable warping, stretching, and rotation of an image held within a polygon or quad? Is this functionality controllable via xTalk in LiveCode?
No that I know of.

Kind regards
Bernd

Randall Lee Reetz
Posts: 28
Joined: Fri Sep 07, 2007 2:04 am
Contact:

Re: Vector Graphics and Imbedded Image Editing

Post by Randall Lee Reetz » Tue Dec 21, 2010 9:04 pm

I also need to be able to manipulate bitmaps (get and set the color of individual pixels, apply filter transforms on [any defined region of the] image [hue, brightness, saturation, blur/sharpness, invert, posterize, edges, color space remap, dither, scale, sphereize, pinch, bloat, opacity, etc.] and multiple image blending [normal, multiply, screen, overlay, lighten, darken, exclusion, hue, saturation, color, luminosity, etc.]).

Would be great if I could apply quicktime, quartz, (or equivalent) filters to images and use other vector graphics as selection masks within images.
I also asked the the above. Anyone know if LiveCode does any of this?

Randall Lee Reetz
What matters is what matters; knowing what matters and how to know it, matters the most.

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

Re: Vector Graphics and Imbedded Image Editing

Post by bn » Tue Dec 21, 2010 9:39 pm

Hi Randall,

you wrote:
I also need to be able to manipulate bitmaps (get and set the color of individual pixels, apply filter transforms on [any defined region of the] image [hue, brightness, saturation, blur/sharpness, invert, posterize, edges, color space remap, dither, scale, sphereize, pinch, bloat, opacity, etc.] and multiple image blending [normal, multiply, screen, overlay, lighten, darken, exclusion, hue, saturation, color, luminosity, etc.]).

Would be great if I could apply quicktime, quartz, (or equivalent) filters to images and use other vector graphics as selection masks within images.
I wrote:
Wilhelm Sanke does a lot of the stuff you are asking for. Have a look at this thread and follow the links.

http://runtime-revolution.278305.n4.nab ... 39534.html

You can actually do a lot with 'imageData' in Livecode -> dictionary.
I also wrote:
for Quartz have a look at: http://revonline2.runrev.com/stack/261/ ... Parameters
Kind regards

Bernd

atout66
Posts: 266
Joined: Wed Feb 02, 2011 12:31 pm

Re: Vector Graphics and Imbedded Image Editing

Post by atout66 » Fri Feb 04, 2011 5:46 pm

Hi all,

I'm new to LiveCode, and interested with solutions about luminosity / contrast on an image object. So, Bn wrote:
If I understand what you want you can do this easily for 24 bit color in Livecode. As far as the RGB, HSV, HEX, conversion is concerned there are converters/Libraries. Look at RevOnline. There is for Quartz have a look at:
(I'm not allowed to put the link !?!)

Thanks for the link Bn, but the example application seems done for Mac users... On my Win7, each time I try a cursor, it brakes the script to an error with a call to the script editor (debug mode).

Searching the forum, I didn't find (yet) a ressource which would look like the one provided by the link above, for window users (or multi plateform) I mean.

Any idea where to search would be very much appreciated.

Regards, Jean-Paul.
Discovering LiveCode Community 6.5.2.

Post Reply