Re: tone separation with Imaging Lingo

2005-12-07 Thread Christoffer Enedahl

Michael von Aichberger 2 wrote:



So one could break it down to the question: How do I blacken all areas below
or above a threshold value in a grayscale image?


 


The Old shool way would be fastest and best I think. Make your own palette.
first copy the image to an grayscale image.
then set the palette to something like this: [ 
0,0,0,0,0,0,128,195,216,256 ] <-- but with rgb values and 256 long... 
(look up palettes in the manual)


HTH/Christoffer


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


Re: a question

2005-12-07 Thread Carl West

Mendelsohn, Michael wrote:


Hi list...

I'm using buddy API's baOpenURL to generate an email message and
populate it with some body text.  (We're all on Windows XP using
Outlook.)  My issue is that the code below doesn't render a carriage
return in the body.  Anyone ever do this with baOpenURL?




I've been using this in a personal tool, it's a bit clunky with Mozilla 
but it works well enough for my purposes. It may help you with baOpenURL.



on mouseup me
  txt = "mailto:[EMAIL PROTECTED]@jkl.net&Subject=Subject Line" & the 
short date &"&body="

  txt = txt & encodeMail(member("target").text)
  gotonetPage(txt)
end


on encodeMail txt
  repeat while true
ofst = offset(return,txt)  

RE: ÍøÒ×ÓÊÏä×Ô¶¯»Ø¸´:RE: flickering button (was: a question)

2005-12-07 Thread Kerry Thompson
Ok, that's it. You're going on my blocked list. You seem to be out of the 
office most of the time, anyway. I just wish you'd unsubscribe from the list so 
we don't get all these annoying bounce messages.

For those of you who don't speak English, a bit of trivia. "Quan" is not a word 
in Chinese, at least with the Romanization system they use on the mainland. 
Unlike English, 'q' isn't often followed by a 'u', and when it is, it forms the 
word "qu" (pronounced, approximately, "choo") (really!). Qu an might be a pair 
of characters, pronounced choo ahn. (Approximately--we don't have the right 
sounds in English to pronounce "qu" properly, though the French would get 
closer than we).

Cordially,

Kerry Thompson

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> [EMAIL PROTECTED]
> Sent: Wednesday, December 07, 2005 6:50 PM
> To: [EMAIL PROTECTED]
> Subject: ÍøÒ×ÓÊÏä×Ô¶¯»Ø¸´:RE:  flickering button 
> (was: a question)
> 
> 
> [EMAIL PROTECTED]
> 



[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


RE: flickering button (was: a question)

2005-12-07 Thread Kerry Thompson
> Are you absolutely sure that you are using "Copy" ink.  Fron your 
> description, it sounds a lot like "Background transparent" ink with 
> white (transparent) pixels in the bitmap.

Yup, absolutely sure. That's what makes it so puzzling. One of the
things, at least.

Cordially,

Kerry Thompson


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


RE: flickering button (was: a question)

2005-12-07 Thread Irv Kalb
Are you absolutely sure that you are using "Copy" ink.  Fron your 
description, it sounds a lot like "Background transparent" ink with 
white (transparent) pixels in the bitmap.


Irv

At 5:03 PM -0500 12/7/05, Kerry Thompson wrote:

 > In reply to Kerry's issues, different reg point locations

 might also be at play in addition to whether the images were
 the same size before importing into Director and somehow one
 had extra white space trimmed on import/insert while the
 other did not. Either of those an issue in your case Kerry?


Nope. Same reg point, same size, same location.

One clue is that I use the same base class for all buttons, and only a
couple do the flickering. Those two are in simulated dialog box
comprising a background with a semi-transparent alpha (a scrim) and two
buttons. The buttons are on top of a bitmap, and do not overlay any
buttons underneath the scrim.

Interestingly, the flickering doesn't seem necessarily to happen at the
edges. In fact, I just looked at it closely, and it's not actually the
button that's flickering, but the cursor (the button has its own
rollover cursor).

Hmmm. It seems to happen at the edges, and in spots where the text is
white. I'm using copy ink, so it shouldn't be a transparency issue, but
the cursor I'm getting IS the cursor for the bitmap underneath the
buttons.

Cordially,

Kerry Thompson


[To remove yourself from this list, or to change to digest mode, go 
to http://www.penworks.com/lingo-l.cgi  To post messages to the 
list, email lingo-l@penworks.com  (Problems, email 
[EMAIL PROTECTED]). Lingo-L is for learning and helping with 
programming Lingo.  Thanks!]



--

Multimedia Wrangler.
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


RE: flickering button (was: a question)

2005-12-07 Thread Buzz Kettles

Hi Kerry:

Could those few sprites that flicker perhaps have been slightly 
resized sprites?


** just guessing **

-Buzz

At 5:03 PM -0500 12/7/05, you wrote:

 > In reply to Kerry's issues, different reg point locations

 might also be at play in addition to whether the images were
 the same size before importing into Director and somehow one
 had extra white space trimmed on import/insert while the
 other did not. Either of those an issue in your case Kerry?


Nope. Same reg point, same size, same location.

One clue is that I use the same base class for all buttons, and only a
couple do the flickering. Those two are in simulated dialog box
comprising a background with a semi-transparent alpha (a scrim) and two
buttons. The buttons are on top of a bitmap, and do not overlay any
buttons underneath the scrim.

Interestingly, the flickering doesn't seem necessarily to happen at the
edges. In fact, I just looked at it closely, and it's not actually the
button that's flickering, but the cursor (the button has its own
rollover cursor).

Hmmm. It seems to happen at the edges, and in spots where the text is
white. I'm using copy ink, so it shouldn't be a transparency issue, but
the cursor I'm getting IS the cursor for the bitmap underneath the
buttons.

Cordially,

Kerry Thompson


[To remove yourself from this list, or to change to digest mode, go 
to http://www.penworks.com/lingo-l.cgi  To post messages to the 
list, email lingo-l@penworks.com  (Problems, email 
[EMAIL PROTECTED]). Lingo-L is for learning and helping with 
programming Lingo.  Thanks!]


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


tone separation with Imaging Lingo

2005-12-07 Thread Michael von Aichberger 2
Hi everybody,

maybe some of you know what equidensities are: these are zones of equal or
similar tonal values in a black and white negative. At the time one used
lith film masks to get them.

I need to do something like that with an alphaChannel image using imaging
lingo, but I am not sure how to do it.

For me it would be good enough to separate a grayscale image in two images,
one with all tonal values above a given threshold value blackened and
another where all values below this value are black.

So one could break it down to the question: How do I blacken all areas below
or above a threshold value in a grayscale image?

Any ideas?

Thanks in advance
Michael

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


Re: flickering button (was: a question)

2005-12-07 Thread John R. Sweeney Jr
on 12/7/05 3:44 PM, Thomas Higgins at [EMAIL PROTECTED] wrote:

> In reply to Kerry's issues, different reg point locations might also be
> at play in addition to whether the images were the same size before
> importing into Director and somehow one had extra white space trimmed on
> import/insert while the other did not. Either of those an issue in your
> case Kerry?

Agreed. If you didn't select trip white space on one or both of them, that
could cause them to be dissimilar.

John


===
John R. Sweeney Jr.([EMAIL PROTECTED])
Interactive Multimedia Developer/
Digital Media Specialist

OnDemand - Interactive, Inc.
847.651.4469 (cell)  847.310.5959 (office/fax)
=== 

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


RE: flickering button (was: a question)

2005-12-07 Thread Kerry Thompson
> In reply to Kerry's issues, different reg point locations 
> might also be at play in addition to whether the images were 
> the same size before importing into Director and somehow one 
> had extra white space trimmed on import/insert while the 
> other did not. Either of those an issue in your case Kerry?

Nope. Same reg point, same size, same location.

One clue is that I use the same base class for all buttons, and only a
couple do the flickering. Those two are in simulated dialog box
comprising a background with a semi-transparent alpha (a scrim) and two
buttons. The buttons are on top of a bitmap, and do not overlay any
buttons underneath the scrim.

Interestingly, the flickering doesn't seem necessarily to happen at the
edges. In fact, I just looked at it closely, and it's not actually the
button that's flickering, but the cursor (the button has its own
rollover cursor).

Hmmm. It seems to happen at the edges, and in spots where the text is
white. I'm using copy ink, so it shouldn't be a transparency issue, but
the cursor I'm getting IS the cursor for the bitmap underneath the
buttons.

Cordially,

Kerry Thompson


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


RE: flickering button (was: a question)

2005-12-07 Thread Thomas Higgins
> > > When ever I've had the flickering issue with a rollover, 
> > > its always been that the first castmember is slightly 
> > > larger than the second (or swapped castmember).
> >
> > If that's not the problem, what else could cause it? I have
> > the same issue, but the idle and roll states are exactly the
> > same size. They're 32-bit with an alpha. Could that have
> > something to do with it?
>
> Does your code for rolling over the button cause it to shift 
> its locV and or locH?  This would cause the same effect.

In reply to Kerry's issues, different reg point locations might also be
at play in addition to whether the images were the same size before
importing into Director and somehow one had extra white space trimmed on
import/insert while the other did not. Either of those an issue in your
case Kerry?

Cheers,
Tom Higgins - Technical Product Manager 
Macromedia Director & the Shockwave Player
http://weblogs.macromedia.com/thiggins 

... 

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


Re: flickering button (was: a question)

2005-12-07 Thread Rob Romanek

Do you have different alpha thresholds for the 2 members?

Rob

On Wed, 7 Dec 2005 15:56:54 -0500, Kerry Thompson 
<[EMAIL PROTECTED]> wrote:





When ever I've had the flickering issue with a rollover, its
always been that the first castmember is slightly larger than
the second (or swapped castmember).


If that's not the problem, what else could cause it? I have the same
issue, but the idle and roll states are exactly the same size. They're
32-bit with an alpha. Could that have something to do with it?

Cordially,

Kerry Thompson



[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


RE: flickering button (was: a question)

2005-12-07 Thread Irv Kalb
Does your code for rolling over the button cause it to shift its locV 
and or locH?  This would cause the same effect.


Irv

At 3:56 PM -0500 12/7/05, Kerry Thompson wrote:

 > When ever I've had the flickering issue with a rollover, its

 always been that the first castmember is slightly larger than
 the second (or swapped castmember).


If that's not the problem, what else could cause it? I have the same
issue, but the idle and roll states are exactly the same size. They're
32-bit with an alpha. Could that have something to do with it?

Cordially,

Kerry Thompson


[To remove yourself from this list, or to change to digest mode, go 
to http://www.penworks.com/lingo-l.cgi  To post messages to the 
list, email lingo-l@penworks.com  (Problems, email 
[EMAIL PROTECTED]). Lingo-L is for learning and helping with 
programming Lingo.  Thanks!]



--

Multimedia Wrangler.
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


RE: flickering button (was: a question)

2005-12-07 Thread Kerry Thompson

> When ever I've had the flickering issue with a rollover, its 
> always been that the first castmember is slightly larger than 
> the second (or swapped castmember).

If that's not the problem, what else could cause it? I have the same
issue, but the idle and roll states are exactly the same size. They're
32-bit with an alpha. Could that have something to do with it?

Cordially,

Kerry Thompson


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


Re[2]: a question

2005-12-07 Thread Duck

Wednesday, December 7, 2005, 4:03:08 PM, Michael wrote:


MM> My issue is that the code below doesn't render a carriage
MM> return in the body.  Anyone ever do this with baOpenURL?

I haven't actually tried it but this might help:

First off, you have ascii 10, then ascii 13 - It should be the other way around 
(13 is a carriage return, 10 is a line feed).

If that doesn't fix it, my second guess would be that those characters should 
probably be URL encoded, seeing as they essentially being used in a URL, so 
perhaps try this:

on emailTest()
  theEmail = "mailto:[EMAIL PROTECTED]&body=line 1%0D%0Aline 2"
  baOpenURL(theEmail, "Normal")
end


- Ben

___
 duck_at_robotduck.com 
   www.robotduck.com   

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


Re: a question

2005-12-07 Thread Héctor Fidel

Michael,

Probably... almost sure your are using an HTML format to the message body, 
in this case the carriage return isn't chr(10)+chr(13).


Iside the HTML format the carriage return is represented by the tag  
"Break" you can used double  for a additional space between 2 
paragraph.


Ej.



on emailTest()
 theEmail = "mailto:[EMAIL PROTECTED]" & "&body=" & "line 1" & "" & "line 
2"

 baOpenURL(theEmail, "Normal")
end



Excuse my English ;-).


Best regards,

Héctor Fidel.

- Original Message - 
From: "Mendelsohn, Michael" <[EMAIL PROTECTED]>

To: "Lingo programming discussion list" 
Sent: Wednesday, December 07, 2005 11:03 AM
Subject: RE:  a question



Hi list...

I'm using buddy API's baOpenURL to generate an email message and
populate it with some body text.  (We're all on Windows XP using
Outlook.)  My issue is that the code below doesn't render a carriage
return in the body.  Anyone ever do this with baOpenURL?

Thanks,
- Michael M.



on emailTest()
 theEmail = "mailto:[EMAIL PROTECTED]" & "&body=" & "line 1" & numToChar(10) &
numToChar(13) & "line 2"
 baOpenURL(theEmail, "Normal")
end


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L 
is for learning and helping with programming Lingo.  Thanks!]







[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


Re: a question

2005-12-07 Thread Bertil Flink

Hi, have you tried urlEncode(RETURN) yet?

Here's an old post of mine from Jan 2001, where this came up:
[Sending an email using BudAPI (baOpenURL)]

Yes, the linefeeds can be a problem. This works fine in Outlook Express (W98), 
however:

on mouseUp me
 theURL = "[EMAIL PROTECTED]"
 theSubj = "Mail from Director"
 LF = urlEncode(RETURN)
 
 theMess = "Hi, this is the message!" &LF& "This is the second line."
 theMess = theMess &LF&LF  
 theMess = theMess & "Here is the second paragraph." &LF

 theMess = theMess & "This is the second line of the second paragraph."
 
-- Here I use BuddyAPI, by the way:

 baOpenURL("mailto:"; & theURL& "?subject=" &theSubj& "&body=" &theMess, 
"normal")
end


And continued:


Hi Steven, you can change the following line:
LF = urlEncode(RETURN)

to:

theOS = (the platform).char[1..3]
LF = urlEncode(RETURN, theOS)



Hope this helps,
Bertil Flink



- Original Message - 
From: "Mendelsohn, Michael" <[EMAIL PROTECTED]>

To: "Lingo programming discussion list" 
Sent: Wednesday, December 07, 2005 5:03 PM
Subject: RE:  a question



Hi list...

I'm using buddy API's baOpenURL to generate an email message and
populate it with some body text.  (We're all on Windows XP using
Outlook.)  My issue is that the code below doesn't render a carriage
return in the body.  Anyone ever do this with baOpenURL?

Thanks,
- Michael M.



on emailTest()
 theEmail = "mailto:[EMAIL PROTECTED]" & "&body=" & "line 1" & numToChar(10) &
numToChar(13) & "line 2"
 baOpenURL(theEmail, "Normal")
end



[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


RE: a question

2005-12-07 Thread Cole Tierney

At 11:03 AM -0500 12/7/05, Mendelsohn, Michael wrote:

I'm using buddy API's baOpenURL to generate an email message and
populate it with some body text.  (We're all on Windows XP using
Outlook.)  My issue is that the code below doesn't render a carriage
return in the body.  Anyone ever do this with baOpenURL?


I tried on a recent project and gave up on it in the end. It just 
wasn't consistent enough across different clients. Outlook Express 
was the most problematic. Here's a link I discovered while trouble 
shooting the problem:

http://www.htmlhelp.com/faq/html/all.html#mailto-subject

--
Cole

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


RE: a question

2005-12-07 Thread Mendelsohn, Michael
Hi list...

I'm using buddy API's baOpenURL to generate an email message and
populate it with some body text.  (We're all on Windows XP using
Outlook.)  My issue is that the code below doesn't render a carriage
return in the body.  Anyone ever do this with baOpenURL?

Thanks,
- Michael M.



on emailTest()
  theEmail = "mailto:[EMAIL PROTECTED]" & "&body=" & "line 1" & numToChar(10) &
numToChar(13) & "line 2"
  baOpenURL(theEmail, "Normal")
end


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]