|
|
|
Grabbing the Stage (D7)
Added on 6/30/1999
|
save the stage to a new member - grabPicture
save the stage to member 7 of castlib 1 - grabpicture 0, member 7,1
save a subrect of the stage to a new member - grabpicture rect(100,100,200,200)
save a subrect of the stage to member 10 of castlib 1 - grabpicture rect(100,100,200,200), member 10,1
on grabPicture croprect, targetmember
if voidp(targetmember) then
targetmember = new(#bitmap)
else
if not ( member(targetmember).type = #bitmap) then
beep
return
end if
end if
member(targetmember).picture = the stage.picture
if ilk(croprect, #rect) then crop(member targetmember, croprect)
end
|
|