Re: Capturing screen into image

2017-07-01 Thread Paul Hibbert via use-livecode
Terry,

If your concern is that the area of the card doesn’t print exactly as you see 
it on screen, it looks to me like the printMargins are set at the default 72 
all round.

Try setting the printMargins to 0
set the printMargins to "0,0,0,0"


Paul



Paul
p...@livecode.org

Mac OS Sierra 10.12.1



> On Jul 1, 2017, at 1:55 PM, Terence Heaford via use-livecode 
>  wrote:
> 
> Hi,
> 
> Thanks for your suggestion but I am afraid it’s not working here:
> 
> I have prepared a short movie on dropbox so you can see what happens when I 
> print it and then open as PDF in MacOS Preview.
> 
> Not sure at all what is going wrong. Could it be something to do with the 
> scaling in the amCharts example?
> 
> Dropbox Link:  https://www.dropbox.com/s/1ijbw12v0176kgm/test.mov?dl=0
> 
> Thanks
> 
> Terry
> 
> 
>> On 1 Jul 2017, at 18:26, hh via use-livecode  
>> wrote:
>> 
>> This works here.
>> 
>> on mouseUp
>> local ii="myImage", bb="Browser"
>> if there is no img ii then create img ii
>> put globalLoc(the topLeft of widget bb) into TL
>> put globalLoc(the botRight of widget bb) into BR
>> export snapshot from rect (TL,BR) to img ii as PNG
>> hide widget bb -- avoid artefacts from browser update
>> print card from (the topLeft of img ii) to (the botRight of img ii)
>> show widget bb
>> end mouseUp
>> 
>> 
>> ___
>> 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

___
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: OT: Mandelbrot set deep dive

2017-07-01 Thread Mark Wieder via use-livecode

On 06/30/2017 04:35 PM, Stephen Barncard via use-livecode wrote:

  They put it into the ice.


RIP Orange Sunshine:

https://boingboing.net/2017/05/17/nicholas-sand-orange-sunshine.html

--
 Mark Wieder
 ahsoftw...@gmail.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: Capturing screen into image

2017-07-01 Thread hh via use-livecode
@Terry.

Because we make a snapshot this is independent of the browser's content.
So at least for isolating the problem you will find below a variant that
'snapshots' directly to a file in your stack's folder.
Then the file is opened with preview via applescript. Here I get exactly
what I want.

Of course, Preview shows gray around the image if the window is larger than
the image. Here the fact that Preview has by default not a transparent but
a gray background may be misleading.

Perhaps you could check with a different app (I use GraphicConverter)
whether this is already the case with earlier attempts or if the gray
disappears when actually printing?

Hermann

on mouseUp
  local ii="myImage.png", bb="Browser"
  put the effective filename of this stack into fn
  set the itemdel to slash
  put ii into last item of fn
  set the itemdel to comma
  put globalLoc(the topLeft of widget bb) into TL
  put globalLoc(the botRight of widget bb) into BR
  export snapshot from rect (TL,BR) to file fn as PNG
  do aScript(fn) as applescript
end mouseUp

function aScript fName
  return "set posixFile to POSIX file "& fName & \
 "tell application "&"Preview"&" to open posixFile"
end aScript

___
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


Snapshot of computer desktop

2017-07-01 Thread Richmond Mathewson via use-livecode

Frankly just a rehash and a tart-up of something I made in about 2002;
maybe useful:

https://www.dropbox.com/s/okypdc1f9sx0ghu/STS.livecode.zip?dl=0

Love, Richmond.
___
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: Capturing screen into image

2017-07-01 Thread Terence Heaford via use-livecode
Hi,

Thanks for your suggestion but I am afraid it’s not working here:

I have prepared a short movie on dropbox so you can see what happens when I 
print it and then open as PDF in MacOS Preview.

Not sure at all what is going wrong. Could it be something to do with the 
scaling in the amCharts example?

Dropbox Link:  https://www.dropbox.com/s/1ijbw12v0176kgm/test.mov?dl=0

Thanks

Terry


> On 1 Jul 2017, at 18:26, hh via use-livecode  
> wrote:
> 
> This works here.
> 
> on mouseUp
>  local ii="myImage", bb="Browser"
>  if there is no img ii then create img ii
>  put globalLoc(the topLeft of widget bb) into TL
>  put globalLoc(the botRight of widget bb) into BR
>  export snapshot from rect (TL,BR) to img ii as PNG
>  hide widget bb -- avoid artefacts from browser update
>  print card from (the topLeft of img ii) to (the botRight of img ii)
>  show widget bb
> end mouseUp
> 
> 
> ___
> 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: Google Static Maps Problem

2017-07-01 Thread prothero--- via use-livecode
Hermann,
I'll definitely share a demo. Re a LC Global talk, I'm unable to commit full 
day slots this summer, so sorry for that. I'm hoping I can get some of the new 
techniques and info from future docs and discussions and, except for this 
Google maps issue, I'm on top of my project.

Thanks again for your help.
Bill P

William Prothero
http://es.earthednet.org

> On Jul 1, 2017, at 12:17 PM, hh via use-livecode 
>  wrote:
> 
> @Bill.
> No thank for that. I started to work with javascript in November 2016 when
> the HTML5 standalone builder introduced "do as javascript". It was now a
> good exercise because your javascript source is by an expert, written very
> clear and clean.
> 
> Please show us your final product (doesn't matter if code is protected),
> your project sounds very interesting. Or give a 7-15 minute talk on the
> principles? AFAIK there are still some slots open in LC GLobal.
> 
> ___
> 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: Google Static Maps Problem

2017-07-01 Thread hh via use-livecode
@Bill.
No thank for that. I started to work with javascript in November 2016 when
the HTML5 standalone builder introduced "do as javascript". It was now a
good exercise because your javascript source is by an expert, written very
clear and clean.

Please show us your final product (doesn't matter if code is protected),
your project sounds very interesting. Or give a 7-15 minute talk on the
principles? AFAIK there are still some slots open in LC GLobal.

___
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: Google Static Maps Problem

2017-07-01 Thread William Prothero via use-livecode
Hermann:
This is looking really good! I will be doing more testing as I integrate it 
into my project, but at this stage, it is behaving as expected.

Thanks so much. Hoping I can repay you in some way. Let me know.

Best,
Bill P

> On Jun 30, 2017, at 8:58 PM, prothero--- via use-livecode 
>  wrote:
> 
> Herman,
> I can't begin to tell you how much I appreciate you doing this! Thanks so 
> much!!
> 
> I'm off my computer for the day, but will run it through its paces tomorrow.
> 
> Thanks again!
> 
> Bill P
> 
> William Prothero
> http://es.earthednet.org
> 
>> On Jun 30, 2017, at 8:27 PM, hh via use-livecode 
>>  wrote:
>> 
>> Sorry all, I'm used to work in the forums where one can easily edit posts to
>> remove errors and typos.
>> 
>> So here another correction, a constant (pixelsPerLonRadian) was wrong in the
>> first two versions above.
>> 
>> My last version, hope it's all correct now:
>> 
>> local MERCATOR_RANGE=256, pixelOrigin, pixelsPerLonDegree, pixelsPerLonRadian
>> 
>> on mouseUp
>> put (55.9537534, -3.1988236) into centerPoint -- LC Home
>> put trunc(the thumbpos of sb "zoom") into zom   -- zoom
>> put 600 into wdth -- image width
>> put 450 into hght -- image height
>> put getCorners (centerpoint,zom,wdth,hght)
>> -- result is "SW: 55.780374,-3.610811,NE: 56.126359,-2.786836"
>> end mouseUp
>> 
>> function getCorners center,zom,mapWidth,mapHeight
>> put (MERCATOR_RANGE/2, MERCATOR_RANGE/2) into pixelOrigin
>> put MERCATOR_RANGE/360 into pixelsPerLonDegree
>> put MERCATOR_RANGE/2/pi into pixelsPerLonRadian
>> put 2^zom into scle
>> put fromLatLngToPoint(center) into centerPx
>> put ( (item 1 of centerPx)-(mapWidth/2)/scle, \
>>   (item 2 of centerPx)+(mapHeight/2)/scle ) into SWPoint
>> put fromPointToLatLng(SWPoint) into SWLatLon
>> put ( (item 1 of centerPx)+(mapWidth/2)/scle, \
>>   (item 2 of centerPx)-(mapHeight/2)/scle ) into NEPoint
>> put fromPointToLatLng(NEPoint) into NELatLon
>> return ("SW: " & SWLatLon, "NE: "& NELatLon)
>> end getCorners
>> 
>> function bound val, opt_min, opt_max
>> if (opt_min is not empty) then put max(val, opt_min) into val
>> if (opt_max is not empty) then put min(val, opt_max) into val
>> return val
>> end bound
>> 
>> function degreesToRadians deg
>> return deg * pi / 180;
>> end degreesToRadians
>> 
>> function radiansToDegrees rad
>> return 180 * rad / pi
>> end radiansToDegrees
>> 
>> function fromLatLngToPoint latLng, opt_point
>> put opt_point into point
>> put pixelOrigin into origin
>> put (item 1 of origin)+(item 2 of latLng)*pixelsPerLonDegree into item 1 of 
>> point
>> put bound(sin(degreesToRadians(item 1 of latLng)), -0., 0.) into siny
>> put (item 2 of origin)+0.5*ln((1-siny)/(1+siny))*pixelsPerLonRadian into 
>> item 2 of point
>> return point
>> end fromLatLngToPoint
>> 
>> function fromPointToLatLng point
>> put pixelOrigin into origin
>> put (item 1 of point -item 1 of origin)/pixelsPerLonDegree into lng
>> put (item 2 of origin-item 2 of  point)/pixelsPerLonRadian into latRadians
>> put radiansToDegrees(2*atan(exp(latRadians))-pi/2) into lat
>> return (lat,lng)
>> end fromPointToLatLng
>> 
>> // pixelCoordinate = worldCoordinate * 2^zoomLevel
>> 
>> 
>> ___
>> 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


___
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: Capturing screen into image

2017-07-01 Thread hh via use-livecode
This works here.

on mouseUp
  local ii="myImage", bb="Browser"
  if there is no img ii then create img ii
  put globalLoc(the topLeft of widget bb) into TL
  put globalLoc(the botRight of widget bb) into BR
  export snapshot from rect (TL,BR) to img ii as PNG
  hide widget bb -- avoid artefacts from browser update
  print card from (the topLeft of img ii) to (the botRight of img ii)
  show widget bb
end mouseUp


___
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: Capturing screen into image

2017-07-01 Thread Matt Maier via use-livecode
This is the script I use to capture screenshots from particular areas

*on* snapCaptureButtMouseUp pLine

*-- clicked in node details to capture a screenshot from the previously
committed captureArea rect*

*-- set the loc of stack "captureArea" to -1000,-1000*

*-- close stack "captureArea"*

*-- should already be closed*

*-- export snapshot from rect sCaptureAreaGeometry["captureAreaRect"] to
image "figureHolder" stack "nodeDetails"*

*put* the effective filename of this stack into tPath

*set* the itemDelimiter to slash

*put* "temp/screenshot.gif" into item -1 of tPath

*export* snapshot from rect sCaptureAreaGeometry["captureAreaRect"] to file
tPath as GIF

*set* the filename of image "figureHolder" stack "nodeDetails" to tPath

*-- size the image*

*put* the rect of field "editData" stack "NodeDetails" into tQuery["maxRect"
]

*put* the long id of image "figureHolder" stack "NodeDetails" into tQuery[
"longID"]

*put* fitImageToConstraint(tQuery) into tGimme

*set* the width of image "figureHolder" stack "NodeDetails" to tGimme[
"width"]

*set* the height of image "figureHolder" stack "NodeDetails" to tGimme[
"height"]

*set* the loc of image "figureHolder" stack "NodeDetails" to tGimme["center"
]

*-- the clear button can be show now*

*set* the visible of button "clearImgButt" stack "NodeDetails" to true

*set* the visible of button "expandImgButt" stack "NodeDetails" to true

*put* the cNodeDetails of stack "NodeDetails" into tDeets

*put* empty into tDeets[pLine]["new"]

*put* true into tDeets["newFigure"]

*-- put "screenshot" into tDeets[pLine]["new"]["copyFrom"]*

*put* tPath into tDeets[pLine]["new"]["copyFrom"]

*put* uuid("random") into tUUID

*put* tUUID & ".gif" into tDeets[pLine]["new"]["newName"]

*set* the cNodeDetails of stack "NodeDetails" to tDeets

*end* snapCaptureButtMouseUp

On Sat, Jul 1, 2017 at 12:14 AM, Terence Heaford via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Thanks for your help.
>
> I have changed the script to below and it does not work.
>
> set the lockLoc of image "myImage" to false
> export snapshot from rectangle (the rect of widget "Browser") to
> pictVariable as PNG
> put pictVariable into image "myImage"
> set the width of image "myImage" to the formattedWidth of image "myImage"
> set the height of image "myImage" to the formattedHeight of image "myImage"
> print card from topleft of image "myImage" to bottomRight of image
> “myImage"
>
> The image “myImage" on the screen seems to be the same as widget “Browser”
> but the print card line of the script shows the grey bar at the top.
>
>
> Any other ideas please.
>
> Thanks
>
> Terry
>
>
>
>
> > On 30 Jun 2017, at 22:48, Mark Schonewille via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Set the lockLoc of the image to false. Set the text of the image to the
> PNG data (you're doing this correctly), but don't set the rect of the image
> first. If necessary, set the width of the image to the formattedWidth of
> the image and set the height of the image to the formattedHeight of the
> image.
> >
> > Kind regards,
> >
> > Mark Schonewille
> > http://economy-x-talk.com
> > https://www.facebook.com/marksch
> >
> > Buy the most extensive book on the
> > LiveCode language:
> > http://livecodebeginner.economy-x-talk.com
> >
> > Op 30-Jun-17 om 20:38 schreef Terence Heaford via use-livecode:
> >> This script does not work.
> >>
> >> export snapshot from rectangle (the rect of widget "Browser") to
> pictVariable as PNG
> >>
> >> set the rect of image "myImage" to the rect of widget "Browser"
> >>
> >> put pictVariable into image "myImage"
> >>
> >> print card from topleft of image "myImage" to bottomRight of image
> “myImage"
> >>
> >>
> >> After placing the captured image into “myImage” there is a grey bar at
> the top and the full width of the image is not visible.
> >>
> >> Am I doing something wrong?
> >>
> >>
> >> Thanks
> >>
> >> Terry
> >> ___
> >> 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
>
> ___
> 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: PrintPaperRectangle

2017-07-01 Thread Paul Dupuis via use-livecode
On 7/1/2017 10:05 AM, Terence Heaford via use-livecode wrote:
> Sorry about that, I should have realised (must be slow on the uptake today) 
> but….
>
>
> I still get the grey area when I print the card.
> Do you have any insight into why this should happen?
> (see thread “Capturing screen into image”)?
>

Sorry Terry, I have not been following the screen image thread.

I responded to the paper size post because I was just doing some work on
my own printing stack and so the material was "fresh" on my mind and was
trying to be helpful on something I knew off the top of my head.

___
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: PrintPaperRectangle

2017-07-01 Thread Terence Heaford via use-livecode
Sorry about that, I should have realised (must be slow on the uptake today) 
but….


I still get the grey area when I print the card.
Do you have any insight into why this should happen?
(see thread “Capturing screen into image”)?


Thanks

Terry


> On 1 Jul 2017, at 14:02, Paul Dupuis via use-livecode 
>  wrote:
> 
> This is correctly reporting A4 with an 8px non-printable area around the
> edge:
> 
> 8.27 × 11.69 inches   8.2772  595.44
> 210 × 297 mm  11.69   72  841.68
> 
>   
>   
>   
>   
> 8,8,834,587   834 8   842
> l,t,r,b   
>   587 8   595
> 
> 
> A4 is 210 x 297mm which is 8.27 x 11.69 inches at 72px per inch is ~842
> x 595 (rounding off)
> Take the Right coordinate of 834 ad add 8 and you get 842 and the Bottom
> of 587 and add 8 and you get 595
> 
> 
> On 7/1/2017 2:58 AM, Terence Heaford via use-livecode wrote:
>> Thanks for your explanation. It does seem logical.
>> 
>> But where does 587 come from in 8,8,834,587 ?
>> 
>> A4 is 553.
>> 
>> Thanks
>> 
>> Terry
>> 
>> 
>> 
>>> On 30 Jun 2017, at 20:56, Bob Sneidar via use-livecode 
>>>  wrote:
>>> 
>>> Almost no toner based printer can do this. It's called Full Bleed, and 
>>> think about what happens to the excess toner that has to go off the edge of 
>>> the paper to do that. Ink based printers are designed to do this because 
>>> they can just catch the ink that gets oversprayed, and you can clean/empty 
>>> the waste ink container periodically. Toner is different because the paper 
>>> with the toner has to travel through the fuser, and then what doesn't get 
>>> fused gets picked up in the waste toner bin AFTER the fusing process. The 
>>> toner that gets left behind on a toner based printer has to have some means 
>>> of being collected. 
>>> 
>>> There are a few production based copiers that can do this, but they are 
>>> made to do it. Most other printers are not. 
>>> 
>>> Bob S
>>> 
>>> 
 On Jun 30, 2017, at 12:48 , Paul Dupuis via use-livecode 
  wrote:
 
 Some printer can not print right to the edge of the paper. I believe
 that the numbers you are seeing reflect the physical limitation on the
 edges of this particular printer.
>>> 
>>> ___
>>> 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
>> 
> 
> 
> ___
> 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: PrintPaperRectangle

2017-07-01 Thread Paul Dupuis via use-livecode
This is correctly reporting A4 with an 8px non-printable area around the
edge:

8.27 × 11.69 inches 8.2772  595.44
210 × 297 mm11.69   72  841.68





8,8,834,587 834 8   842
l,t,r,b 
587 8   595


A4 is 210 x 297mm which is 8.27 x 11.69 inches at 72px per inch is ~842
x 595 (rounding off)
Take the Right coordinate of 834 ad add 8 and you get 842 and the Bottom
of 587 and add 8 and you get 595


On 7/1/2017 2:58 AM, Terence Heaford via use-livecode wrote:
> Thanks for your explanation. It does seem logical.
>
> But where does 587 come from in 8,8,834,587 ?
>
> A4 is 553.
>
> Thanks
>
> Terry
>
>
>
>> On 30 Jun 2017, at 20:56, Bob Sneidar via use-livecode 
>>  wrote:
>>
>> Almost no toner based printer can do this. It's called Full Bleed, and think 
>> about what happens to the excess toner that has to go off the edge of the 
>> paper to do that. Ink based printers are designed to do this because they 
>> can just catch the ink that gets oversprayed, and you can clean/empty the 
>> waste ink container periodically. Toner is different because the paper with 
>> the toner has to travel through the fuser, and then what doesn't get fused 
>> gets picked up in the waste toner bin AFTER the fusing process. The toner 
>> that gets left behind on a toner based printer has to have some means of 
>> being collected. 
>>
>> There are a few production based copiers that can do this, but they are made 
>> to do it. Most other printers are not. 
>>
>> Bob S
>>
>>
>>> On Jun 30, 2017, at 12:48 , Paul Dupuis via use-livecode 
>>>  wrote:
>>>
>>> Some printer can not print right to the edge of the paper. I believe
>>> that the numbers you are seeing reflect the physical limitation on the
>>> edges of this particular printer.
>>
>> ___
>> 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
>


___
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: Capturing screen into image

2017-07-01 Thread Terence Heaford via use-livecode
Thanks for your help.

I have changed the script to below and it does not work.

set the lockLoc of image "myImage" to false
export snapshot from rectangle (the rect of widget "Browser") to pictVariable 
as PNG
put pictVariable into image "myImage"
set the width of image "myImage" to the formattedWidth of image "myImage"
set the height of image "myImage" to the formattedHeight of image "myImage"
print card from topleft of image "myImage" to bottomRight of image “myImage"

The image “myImage" on the screen seems to be the same as widget “Browser”
but the print card line of the script shows the grey bar at the top.


Any other ideas please.

Thanks

Terry 




> On 30 Jun 2017, at 22:48, Mark Schonewille via use-livecode 
>  wrote:
> 
> Set the lockLoc of the image to false. Set the text of the image to the PNG 
> data (you're doing this correctly), but don't set the rect of the image 
> first. If necessary, set the width of the image to the formattedWidth of the 
> image and set the height of the image to the formattedHeight of the image.
> 
> Kind regards,
> 
> Mark Schonewille
> http://economy-x-talk.com
> https://www.facebook.com/marksch
> 
> Buy the most extensive book on the
> LiveCode language:
> http://livecodebeginner.economy-x-talk.com
> 
> Op 30-Jun-17 om 20:38 schreef Terence Heaford via use-livecode:
>> This script does not work.
>> 
>> export snapshot from rectangle (the rect of widget "Browser") to 
>> pictVariable as PNG
>> 
>> set the rect of image "myImage" to the rect of widget "Browser"
>> 
>> put pictVariable into image "myImage"
>> 
>> print card from topleft of image "myImage" to bottomRight of image  “myImage"
>> 
>> 
>> After placing the captured image into “myImage” there is a grey bar at the 
>> top and the full width of the image is not visible.
>> 
>> Am I doing something wrong?
>> 
>> 
>> Thanks
>> 
>> Terry
>> ___
>> 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

___
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: OT: Mandelbrot set deep dive

2017-07-01 Thread Richmond Mathewson via use-livecode

Made me think of earlier versions of iTunes.

Richmond.

On 7/1/17 1:41 am, Phil Davis via use-livecode wrote:
After watching a couple minutes of this, I started getting 
light-headed and felt like I was going back to the late 60s.


Phil Davis


On 6/30/17 1:44 PM, Mark Wieder via use-livecode wrote:
And while I'm posting off-topic subjects, here's a seriously deep 
dive into the Mandelbrot set.


https://www.youtube.com/watch?v=ModQ59muXmU





___
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: PrintPaperRectangle

2017-07-01 Thread Terence Heaford via use-livecode

Thanks for your explanation. It does seem logical.

But where does 587 come from in 8,8,834,587 ?

A4 is 553.

Thanks

Terry



> On 30 Jun 2017, at 20:56, Bob Sneidar via use-livecode 
>  wrote:
> 
> Almost no toner based printer can do this. It's called Full Bleed, and think 
> about what happens to the excess toner that has to go off the edge of the 
> paper to do that. Ink based printers are designed to do this because they can 
> just catch the ink that gets oversprayed, and you can clean/empty the waste 
> ink container periodically. Toner is different because the paper with the 
> toner has to travel through the fuser, and then what doesn't get fused gets 
> picked up in the waste toner bin AFTER the fusing process. The toner that 
> gets left behind on a toner based printer has to have some means of being 
> collected. 
> 
> There are a few production based copiers that can do this, but they are made 
> to do it. Most other printers are not. 
> 
> Bob S
> 
> 
>> On Jun 30, 2017, at 12:48 , Paul Dupuis via use-livecode 
>>  wrote:
>> 
>> Some printer can not print right to the edge of the paper. I believe
>> that the numbers you are seeing reflect the physical limitation on the
>> edges of this particular printer.
> 
> 
> ___
> 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