sending png through a socket
Posted: Fri Dec 18, 2015 6:58 pm
i started my tests with a jpg and had two images the same size. one called "try" and the other called "returnit"
i setup two buttons. the first did this
the second did this
it worked great with the jpg. but then i tried with a png. it seems that its the alpha info thats getting messed up
i setup two buttons. the first did this
Code: Select all
global myvar
on mouseUp
answer file "Get your image"
set the filename of img "try" to it
put "image! "& the imageData of img "try" into myvar
end mouseUp
Code: Select all
global myvar
on mouseUp
if the first word of myvar is "image!" then
delete the first word of myvar
set the imageData of img "returnit" to myvar
end if
end mouseUp