set borderWidth spoils images
geradamas at yahoo.com
Fri Mar 6 15:42:17 EST 2009
set the vis of btn "Button 1" to false
create img "BOX"
put the windowID of this stack into WINDY
put the rect of card "KARD" into HANDY
export snapshot from rect HANDY of window WINDY to img "BOX" as PNG
set the borderColor of img "BOX" to "green"
put the bottomRight of card "KARD" into BRITE
put the width of card "KARD" into WIDD
put the height of card "KARD" into HITE
set the width of img "BOX" to (WIDD / 2)
set the height of img "BOX" to (HITE / 2)
set the borderWidth of img "BOX" to 4
set the bottomRight of img "BOX" to BRITE
set the vis of btn "Button 1" to true
(the 2 'offending lines' have been lifted to be before the image "BOX"
resizing works perfectly OK;
still no green border, though . . .
sincerely, Richmond Mathewson.
A Thorn in the flesh is better than a failed Systems Development Life Cycle.
More information about the Use-livecode