Page 1 of 1

How to import an image on substack

Posted: Tue Apr 19, 2016 2:33 pm
by samjith
Hi,

How to import an image on substack from my desktop and can able to view the imported image, when i increse the blend property of main stack.

I did it, but sometime the created substack height and width changes. i don't know why it happends
and
is there any way to zoom in and out the imported image in substack and also i need to lock the image to some point


Thanks

Samjith

Re: How to import an image on substack

Posted: Thu Apr 21, 2016 4:12 pm
by MaxV
I would use only this code on your button import:
########CODE#######
on mouseup
if exists (stack "Pic") then
answer "Image already exist"
else
lock screen
create stack "Pic"
go stack "Pic"
set the rect of stack "pic" to the rect of stack "test" #Why?
create image "image"
set the filename of image "image" to "/home/samjith/Pictures/1.png"
set the rect of image "image" to "0,0,50,50" # to zoom it
unlock screen
end if
end mouseup
#####END OF CODE#####

Re: How to import an image on substack

Posted: Sat Apr 23, 2016 3:06 am
by samjith
thanks MaxV, i did it by instead creating substack by code.
set the rect of stack "pic" to the rect of stack "test" #Why?
i wan't to see the substack, when i change the blend propery of mainstack, like a transparent layer.
set the rect of image "image" to "0,0,50,50" # to zoom it
This is what i need.