storage image in var problem

The place to discuss anything and everything about running your LiveCode on Android

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
BigameOver
Posts: 39
Joined: Thu Jan 23, 2020 5:56 pm

storage image in var problem

Post by BigameOver » Sun Sep 27, 2020 12:47 pm

Hi,
When I put an image I captured from camera into a variable I see the image in zoom on the screen
How do I fix this?
Thanks
Attachments
Webp.net-resizeimage (1).jpg

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5590
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: storage image in var problem

Post by richmond62 » Sun Sep 27, 2020 1:09 pm

I'd put it into the custom property of something rather than a variable; then it should not
show up on screen.

BigameOver
Posts: 39
Joined: Thu Jan 23, 2020 5:56 pm

Re: storage image in var problem

Post by BigameOver » Sun Sep 27, 2020 1:24 pm

I put the result into a custom property of a button but it still doesn't work

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5590
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: storage image in var problem

Post by richmond62 » Sun Sep 27, 2020 1:47 pm

it still doesn't work
Do you mean the image still shows up on screen?

BigameOver
Posts: 39
Joined: Thu Jan 23, 2020 5:56 pm

Re: storage image in var problem

Post by BigameOver » Sun Sep 27, 2020 1:52 pm

richmond62 wrote:
Sun Sep 27, 2020 1:47 pm
it still doesn't work
Do you mean the image still shows up on screen?
Yes

Klaus
Posts: 12283
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: storage image in var problem

Post by Klaus » Sun Sep 27, 2020 2:08 pm

What did you script so far?

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5590
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: storage image in var problem

Post by richmond62 » Sun Sep 27, 2020 2:09 pm

A button:
-

Code: Select all

on mouseUp
set the screenLock to true
---
-- your import routine here
---
set the PICPROP of me to img "SomeDaftImage"
delete img "Some DaftImage"
wait 5 ticks
set the screenLock to false
end mouseUp
-
?

Klaus
Posts: 12283
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: storage image in var problem

Post by Klaus » Sun Sep 27, 2020 2:53 pm

LOCKSCREEN, Richmond, LOCKSCREEN! 8)

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5590
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: storage image in var problem

Post by richmond62 » Sun Sep 27, 2020 3:26 pm

Whoops . . . Yes. 8)

BigameOver
Posts: 39
Joined: Thu Jan 23, 2020 5:56 pm

Re: storage image in var problem

Post by BigameOver » Mon Sep 28, 2020 6:35 pm

richmond62 wrote:
Sun Sep 27, 2020 2:09 pm
A button:
-

Code: Select all

on mouseUp
set the screenLock to true
---
-- your import routine here
---
set the PICPROP of me to img "SomeDaftImage"
delete img "Some DaftImage"
wait 5 ticks
set the screenLock to false
end mouseUp
-
?
Woops, I forgot to delete the last image, thanks!

Post Reply

Return to “Android Deployment”