Vector Graphics and Imbedded Image Editing
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 28
- Joined: Fri Sep 07, 2007 2:04 am
- Contact:
Vector Graphics and Imbedded Image Editing
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
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.
Re: Vector Graphics and Imbedded Image Editing
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.
for Quartz have a look at: http://revonline2.runrev.com/stack/261/ ... Parameters
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.
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.
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 isI 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.
for Quartz have a look at: http://revonline2.runrev.com/stack/261/ ... Parameters
you can do all this via script.What are my prospects using LiveCode to effect the above control over images via code control (not within editor)?
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.
-
- Posts: 28
- Joined: Fri Sep 07, 2007 2:04 am
- Contact:
Re: Vector Graphics and Imbedded Image Editing
In the leading post in this thread I asked:
Randall Lee Reetz
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?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).
Randall Lee Reetz
What matters is what matters; knowing what matters and how to know it, matters the most.
Re: Vector Graphics and Imbedded Image Editing
Hi Randall,
Kind regards
Bernd
No that I know of.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?
Kind regards
Bernd
-
- Posts: 28
- Joined: Fri Sep 07, 2007 2:04 am
- Contact:
Re: Vector Graphics and Imbedded Image Editing
I also asked the the above. Anyone know if LiveCode does any of this?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.
Randall Lee Reetz
What matters is what matters; knowing what matters and how to know it, matters the most.
Re: Vector Graphics and Imbedded Image Editing
Hi Randall,
you wrote:
Bernd
you wrote:
I 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 also 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.
Kind regardsfor Quartz have a look at: http://revonline2.runrev.com/stack/261/ ... Parameters
Bernd
Re: Vector Graphics and Imbedded Image Editing
Hi all,
I'm new to LiveCode, and interested with solutions about luminosity / contrast on an image object. So, Bn wrote:
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.
I'm new to LiveCode, and interested with solutions about luminosity / contrast on an image object. So, Bn wrote:
(I'm not allowed to put the link !?!)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:
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.