Re: Marker image sizes

2014-08-15 Thread Richard Gaskin
Bernd set the standard for community assistance.  The level of detail he 
applies to all of the many code examples he shares to help people get 
the most out of LiveCode is an inspiration to all of us.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com


J. Landman Gay wrote:


It took me some time to get around to trying this, but I must say, this
marker will be very useful to some of us. :)

Thanks for making these tools available, Bernd.


On 8/12/2014, 12:08 PM, BNig wrote:

and for a nice marker made with above utility set the markerPoints of a
polygon graphic to

--
-4,-6
-4,-5
-4,-4
-4,-3
-4,-2
-4,-1
-4,0

-4,0
-5,0
-6,0

-2,-4
-2,-3
-2,-2
-2,-1
-2,0

-2,-4
-1,-4
0,-4
1,-4

1,-4
1,-3
1,-2
1,-1
1,0

-2,-2
-1,-2
0,-2

3,-4
4,-4
5,-4

3,-4
3,-3
3,-2
3,-1
3,0

3,0
4,0
5,0

-6,2
-5,2
-4,2

-6,2
-6,3
-6,4

-6,4
-5,4
-4,4

-4,2
-4,3
-4,4
-4,5
-4,6

-2,2
-2,3
-2,4
-2,5
-2,6

-2,6
-1,6
0,6
1,6

1,6
1,5
1,4
1,3
1,2

3,2
3,3
3,4
3,5
3,6

3,2
4,2
5,2

3,6
4,6
5,6

3,4
4,4
-



--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Marker image sizes

2014-08-14 Thread J. Landman Gay
It took me some time to get around to trying this, but I must say, this 
marker will be very useful to some of us. :)


Thanks for making these tools available, Bernd.


On 8/12/2014, 12:08 PM, BNig wrote:

and for a nice marker made with above utility set the markerPoints of a
polygon graphic to

--
-4,-6
-4,-5
-4,-4
-4,-3
-4,-2
-4,-1
-4,0

-4,0
-5,0
-6,0

-2,-4
-2,-3
-2,-2
-2,-1
-2,0

-2,-4
-1,-4
0,-4
1,-4

1,-4
1,-3
1,-2
1,-1
1,0

-2,-2
-1,-2
0,-2

3,-4
4,-4
5,-4

3,-4
3,-3
3,-2
3,-1
3,0

3,0
4,0
5,0

-6,2
-5,2
-4,2

-6,2
-6,3
-6,4

-6,4
-5,4
-4,4

-4,2
-4,3
-4,4
-4,5
-4,6

-2,2
-2,3
-2,4
-2,5
-2,6

-2,6
-1,6
0,6
1,6

1,6
1,5
1,4
1,3
1,2

3,2
3,3
3,4
3,5
3,6

3,2
4,2
5,2

3,6
4,6
5,6

3,4
4,4
-



--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Marker image sizes

2014-08-12 Thread Jacques Hausser

Le 12 août 2014 à 01:07, J. Landman Gay jac...@hyperactivesw.com a écrit :

 Thank you, that must have taken you a while to figure out. You're very kind.

It's not so long to do, if one has some squared paper, but Bernd's stack (he 
sent it to me, thanks again Bernd) is far better !

 Do you ever feel like when we talk, we should call ourselves this me? 
 Sometimes I think I am talking to myself. :)

Behavior buttons are a very good example of Multiple Personality Disorder... I 
would favor myself or even better itself over this me. Something 
concerning the parent button itself.

**
Prof. Jacques Hausser
Department of Ecology and Evolution
Biophore / Sorge
University of Lausanne
CH 1015 Lausanne
please use my private address:
6 route de Burtigny
CH-1269 Bassins
tel:++ 41 22 366 19 40
mobile: ++ 41 79 757 05 24
E-Mail: jacques.haus...@unil.ch
***


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Marker image sizes

2014-08-12 Thread BNig
Hi,

since there was a stack mentioned I figured I make it available.

The stack makes markerPoints for graphics in form of circle or ellipse.

The stack has a minimalistic layout and the math for drawing an ellipse is
taken from a stack from Jim James Hurley.

http://berndniggemann.on-rev.com/markers/markerUtilityCircle.livecode

There is also a stack on LiveCodeShare that allows drawing or marker shapes

http://livecodeshare.runrev.com/stack/396/MakeMarker-Utility

and for a nice marker made with above utility set the markerPoints of a
polygon graphic to

--
-4,-6
-4,-5
-4,-4
-4,-3
-4,-2
-4,-1
-4,0

-4,0
-5,0
-6,0

-2,-4
-2,-3
-2,-2
-2,-1
-2,0

-2,-4
-1,-4
0,-4
1,-4

1,-4
1,-3
1,-2
1,-1
1,0

-2,-2
-1,-2
0,-2

3,-4
4,-4
5,-4

3,-4
3,-3
3,-2
3,-1
3,0

3,0
4,0
5,0

-6,2
-5,2
-4,2

-6,2
-6,3
-6,4

-6,4
-5,4
-4,4

-4,2
-4,3
-4,4
-4,5
-4,6

-2,2
-2,3
-2,4
-2,5
-2,6

-2,6
-1,6
0,6
1,6

1,6
1,5
1,4
1,3
1,2

3,2
3,3
3,4
3,5
3,6

3,2
4,2
5,2

3,6
4,6
5,6

3,4
4,4
-


Kind regards
Bernd



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Marker-image-sizes-tp4681893p4681949.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Marker image sizes

2014-08-11 Thread Jacques Hausser
Hi Jacque,

Trying to build a 12x12 round marker, I realized that the markers coordinates 
0,0 are positioned on the polygon vertex... so my previous circle was not 
correctly centered. And, a circle of 8x8 or 12x12  never will, you have to use 
odd numbers of pixels to have the marker well centered !

so, a 7x7 circle:

0,-3,1,-3,2,-2,3,-1,3,0,3,1,2,2,1,3,0,3,-1,3,-2,2,-3,1,-3,0,-3,-1,-2,-2,-1,-3,0,-3

and a 11x11 circle:

0,-5,1,-5,2,-4,3,-4,4,-3,4,-2,5,-1,5,0,5,1,4,2,4,3,3,4,2,4,1,5,0,5,-1,5,-2,4,-3,4,-4,3,-4,2,-5,1,-5,0,-5,-1,-4,-2,-4,-3,-3,-4,-2,-4,-1,-5,0,-5

Jacques

 On 8/10/2014, 7:25 PM, Jacques Hausser wrote:
 An the inner glow gives a decent result. What's boring is to set
 the points for a 8 x 8 circle... I offer it to you ;-)
 2,0,3,0,4,0,5,0,6,1,7,2,7,3,7,4,7,5,6,6,5,7,4,7,3,7,2,7,1,6,0,5,0,4,0,3,0,2,1,1,2,0

**
Prof. Jacques Hausser
Department of Ecology and Evolution
Biophore / Sorge
University of Lausanne
CH 1015 Lausanne
please use my private address:
6 route de Burtigny
CH-1269 Bassins
tel:++ 41 22 366 19 40
mobile: ++ 41 79 757 05 24
E-Mail: jacques.haus...@unil.ch
***


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Marker image sizes

2014-08-11 Thread J. Landman Gay

On 8/11/2014, 3:26 AM, Jacques Hausser wrote:

so, a 7x7 circle:

0,-3,1,-3,2,-2,3,-1,3,0,3,1,2,2,1,3,0,3,-1,3,-2,2,-3,1,-3,0,-3,-1,-2,-2,-1,-3,0,-3

and a 11x11 circle:

0,-5,1,-5,2,-4,3,-4,4,-3,4,-2,5,-1,5,0,5,1,4,2,4,3,3,4,2,4,1,5,0,5,-1,5,-2,4,-3,4,-4,3,-4,2,-5,1,-5,0,-5,-1,-4,-2,-4,-3,-3,-4,-2,-4,-1,-5,0,-5


Thank you, that must have taken you a while to figure out. You're very kind.

Do you ever feel like when we talk, we should call ourselves this me? 
Sometimes I think I am talking to myself. :)


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Marker image sizes

2014-08-11 Thread Scott Rossi
When I talk about you behind your back, I usually say that her, and
people get the reference.

:-)

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 8/11/14 4:07 PM, J. Landman Gay jac...@hyperactivesw.com wrote:

Do you ever feel like when we talk, we should call ourselves this me?



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Marker image sizes

2014-08-10 Thread J. Landman Gay
I don't think it is possible to do what I need, but if anyone has time 
to tinker, I've put an example stack here:


https://dl.dropboxusercontent.com/u/23431607/markerTest.livecode

The problem seems to be that the markers are drawn based on each point's 
position as it would lie on a tiled copy of the original image. Markers 
are not drawn individually, they are stamped out of the tiled copy in 
the buffer.


I don't see a solution to this.


On 8/10/2014, 12:16 AM, J. Landman Gay wrote:

Does anyone know how the engine calculates the size of an image used to
draw the markers on a polygon graphic? I have an image that is 8 pixels
square but when used as a marker it appears smaller. I've fiddled with
the linesize of the graphic, which does change the marker size, but
instead of drawing the image larger, it starts to tile it.

The graphics are smallish (under 40 pixels in any dimension.) Does the
number of points make a difference?




--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Marker image sizes

2014-08-10 Thread J. Landman Gay
I forgot to mention, I can get something close if I make the markers 
about half the size of the original images, but I need them to be the 
same size as the originals.



On 8/10/2014, 5:54 PM, J. Landman Gay wrote:

I don't think it is possible to do what I need, but if anyone has time
to tinker, I've put an example stack here:

https://dl.dropboxusercontent.com/u/23431607/markerTest.livecode

The problem seems to be that the markers are drawn based on each point's
position as it would lie on a tiled copy of the original image. Markers
are not drawn individually, they are stamped out of the tiled copy in
the buffer.

I don't see a solution to this.


On 8/10/2014, 12:16 AM, J. Landman Gay wrote:

Does anyone know how the engine calculates the size of an image used to
draw the markers on a polygon graphic? I have an image that is 8 pixels
square but when used as a marker it appears smaller. I've fiddled with
the linesize of the graphic, which does change the marker size, but
instead of drawing the image larger, it starts to tile it.

The graphics are smallish (under 40 pixels in any dimension.) Does the
number of points make a difference?







--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Marker image sizes

2014-08-10 Thread Randy Hengst
Hi Jacque,

I'm not going to claim any understanding of the engine… but, I played a bit and 
maybe this info will be helpful.

I messed with creating the image within LC6.6.2 OSX 8.5:import snapshot 
from grc DemoOval 

and experimented with different size graphics.

I started using a 100x100 graphic… the imported image matched the size of the 
graphic…

The image matched the size of the graphic down to 9x9… but when the graphic was 
set to 8x8, the resulting image was 120x120… the same 120x120 was the result 
when the imported graphic was 7x7, 6x6, 5x5, 4x4, 3x3, 2x2, and even 1x1.

be well,
randy hengst
--
On Aug 10, 2014, at 5:59 PM, J. Landman Gay jac...@hyperactivesw.com wrote:

 I forgot to mention, I can get something close if I make the markers about 
 half the size of the original images, but I need them to be the same size as 
 the originals.
 
 
 On 8/10/2014, 5:54 PM, J. Landman Gay wrote:
 I don't think it is possible to do what I need, but if anyone has time
 to tinker, I've put an example stack here:
 
 https://dl.dropboxusercontent.com/u/23431607/markerTest.livecode
 
 The problem seems to be that the markers are drawn based on each point's
 position as it would lie on a tiled copy of the original image. Markers
 are not drawn individually, they are stamped out of the tiled copy in
 the buffer.
 
 I don't see a solution to this.
 
 
 On 8/10/2014, 12:16 AM, J. Landman Gay wrote:
 Does anyone know how the engine calculates the size of an image used to
 draw the markers on a polygon graphic? I have an image that is 8 pixels
 square but when used as a marker it appears smaller. I've fiddled with
 the linesize of the graphic, which does change the marker size, but
 instead of drawing the image larger, it starts to tile it.
 
 The graphics are smallish (under 40 pixels in any dimension.) Does the
 number of points make a difference?
 
 
 
 
 
 -- 
 Jacqueline Landman Gay | jac...@hyperactivesw.com
 HyperActive Software   | http://www.hyperactivesw.com
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Marker image sizes

2014-08-10 Thread Jacques Hausser
Hi Jacque,

It seems that if you fill the Markerfill with your image,this image is 
transformed into a pattern, that is, repeated in every direction across the 
graphic and visible only in the markers (what I deduce because they don't look 
identical to each other, but two contiguous or overlapping markers give a 
continuous pattern). No problem if you use a plain color instead of your image. 
An the inner glow gives a decent result. What's boring is to set the points 
for a 8 x 8 circle... I offer it to you ;-)
2,0,3,0,4,0,5,0,6,1,7,2,7,3,7,4,7,5,6,6,5,7,4,7,3,7,2,7,1,6,0,5,0,4,0,3,0,2,1,1,2,0
 - LC is able to read this continuous list if you past it into the marker 
points field of the inspector.
Another possibility is to drop the graphic and use only it's list of points, 
and to clone your image and set the loc of each clone to the successive 
points... but it will give more headache if you want to change the scale.
Good luck anyway

Jacques

Le 11 août 2014 à 00:59, J. Landman Gay jac...@hyperactivesw.com a écrit :

 I forgot to mention, I can get something close if I make the markers about 
 half the size of the original images, but I need them to be the same size as 
 the originals.
 
 
 On 8/10/2014, 5:54 PM, J. Landman Gay wrote:
 I don't think it is possible to do what I need, but if anyone has time
 to tinker, I've put an example stack here:
 
 https://dl.dropboxusercontent.com/u/23431607/markerTest.livecode
 
 The problem seems to be that the markers are drawn based on each point's
 position as it would lie on a tiled copy of the original image. Markers
 are not drawn individually, they are stamped out of the tiled copy in
 the buffer.
 
 I don't see a solution to this.
 
 
 On 8/10/2014, 12:16 AM, J. Landman Gay wrote:
 Does anyone know how the engine calculates the size of an image used to
 draw the markers on a polygon graphic? I have an image that is 8 pixels
 square but when used as a marker it appears smaller. I've fiddled with
 the linesize of the graphic, which does change the marker size, but
 instead of drawing the image larger, it starts to tile it.
 
 The graphics are smallish (under 40 pixels in any dimension.) Does the
 number of points make a difference?
 
 
 
 
 

**
Prof. Jacques Hausser
Department of Ecology and Evolution
Biophore / Sorge
University of Lausanne
CH 1015 Lausanne
please use my private address:
6 route de Burtigny
CH-1269 Bassins
tel:++ 41 22 366 19 40
mobile: ++ 41 79 757 05 24
E-Mail: jacques.haus...@unil.ch
***


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Marker image sizes

2014-08-10 Thread Jacques Hausser

 Another possibility is to drop the graphic and use only it's list of points, 
 and to clone your image and set the loc of each clone to the successive 
 points... but it will give more headache if you want to change the scale.

No, better to keep the graphic (without markers) and to use it's list of points 
as the locs of the image clones.

**
Prof. Jacques Hausser
Department of Ecology and Evolution
Biophore / Sorge
University of Lausanne
CH 1015 Lausanne
please use my private address:
6 route de Burtigny
CH-1269 Bassins
tel:++ 41 22 366 19 40
mobile: ++ 41 79 757 05 24
E-Mail: jacques.haus...@unil.ch
***


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Marker image sizes

2014-08-10 Thread Mark Wieder
Jacque-

You may be fighting a losing battle here. According to the docs for
markerPattern (aka hilitePattern):

The hilitePattern of a graphic, image, player, or EPS object has no effect.

-- 
-Mark Wieder
 ahsoftw...@gmail.com

This communication may be unlawfully collected and stored by the National 
Security Agency (NSA) in secret. The parties to this email do not 
consent to the retrieving or storing of this communication and any 
related metadata, as well as printing, copying, re-transmitting, 
disseminating, or otherwise using it. If you believe you have received 
this communication in error, please delete it immediately.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Marker image sizes

2014-08-10 Thread J. Landman Gay

On 8/10/2014, 9:18 PM, Mark Wieder wrote:

Jacque-

You may be fighting a losing battle here. According to the docs for
markerPattern (aka hilitePattern):

The hilitePattern of a graphic, image, player, or EPS object has no effect.



Yeah, but it's a lie. :) It has an effect, it just isn't the one I want.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Marker image sizes

2014-08-10 Thread J. Landman Gay

On 8/10/2014, 7:25 PM, Jacques Hausser wrote:

An the inner glow gives a decent result. What's boring is to set
the points for a 8 x 8 circle... I offer it to you ;-)
2,0,3,0,4,0,5,0,6,1,7,2,7,3,7,4,7,5,6,6,5,7,4,7,3,7,2,7,1,6,0,5,0,4,0,3,0,2,1,1,2,0


Thank you, I will be able to use this. Bernd sent me a stack in email 
that does something similar and it works well. How did you get the 
points for the circle? I have one more to do that is slightly larger 
(12x12).



Another possibility is to drop
the graphic and use only it's list of points, and to clone your image
and set the loc of each clone to the successive points... but it will
give more headache if you want to change the scale.


I'd thought of that, but using button icons, but there are too many. The 
card is already overloaded with objects, and I have thousands of points 
to plot. I reduced that to 800 graphics, each of which needs a different 
marker symbol at different times.



--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Marker image sizes

2014-08-09 Thread J. Landman Gay
Does anyone know how the engine calculates the size of an image used to 
draw the markers on a polygon graphic? I have an image that is 8 pixels 
square but when used as a marker it appears smaller. I've fiddled with 
the linesize of the graphic, which does change the marker size, but 
instead of drawing the image larger, it starts to tile it.


The graphics are smallish (under 40 pixels in any dimension.) Does the 
number of points make a difference?


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode