Page 1 of 1
Vector Graphics and Imbedded Image Editing
Posted: Sun Dec 19, 2010 10:07 pm
by Randall Lee Reetz
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
Re: Vector Graphics and Imbedded Image Editing
Posted: Mon Dec 20, 2010 12:08 pm
by bn
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.
Re: Vector Graphics and Imbedded Image Editing
Posted: Tue Dec 21, 2010 12:26 am
by Randall Lee Reetz
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
Re: Vector Graphics and Imbedded Image Editing
Posted: Tue Dec 21, 2010 9:49 am
by bn
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
Re: Vector Graphics and Imbedded Image Editing
Posted: Tue Dec 21, 2010 9:04 pm
by Randall Lee Reetz
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
Re: Vector Graphics and Imbedded Image Editing
Posted: Tue Dec 21, 2010 9:39 pm
by bn
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:
I also wrote:
Kind regards
Bernd
Re: Vector Graphics and Imbedded Image Editing
Posted: Fri Feb 04, 2011 5:46 pm
by atout66
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.