How to read images in a preset folder and display it on an image area using Livecode? - slideshow

How to read images in a preset folder and display it on an image area using Livecode?
I have read through many Livecode sites but could not find an example.

create a button "butn" and image area "imag"
then put this code in that button.
repeat with i =0 to the number of images in url "~/your/folder/path"
put it into image "imag"
wait 2 sec
end repeat
I should work, but i don't checked. if not, keep this logic in your mind and try it yourself.
all the best.

Related

How to take a screenshot of a particular QWidget in a tab in QT and post it in another tab?

I have a tab that is to display data that is to be prepared for a report. Kind of like a preview. What I want is to take a screenshot of graph generated in another tab.
Kind of similar to scanning an image. So the initial tab generates 3 graphs under each other that fit in the screen. I basically want the screen shots of the graphs to post them along with the data in the second tab.
The second image is where I want the content of the first image to be posted. How do I go on about that?

Do not show Desktop between 2 videos

I´m working with OMXPlayer on Raspberry.
Right now I have a loop(with Python2.7) to show videos and it works correctly.
But I have two problems:
1. When one video is finished, the Desktop will be shown for one second. And I don't want it. How can I change quickly to another video without showing the Desktop?
2. Another problem is that I wanna show some pictures too.. I know that OMXPlayer does not show images... Can I use another program in my code? But the user should not notice the change.
Thanks.
I was trying to figure this out too but I'm afraid it's not possible. It seams to me that omxplayer is only able to play a single video at a time and to play another video you have to run a new instance of the program. It takes a while to initialize, hence the gap between the videos.
That said, I figured a nasty way to get around it. When playing a video, you can extract it's last frame into a PNG file with ffmpeg. Then, you can play the video with omxplayer and use whatever graphical tools you have to display the picture fullscreen in the background. When the video ends, it disappears but the picture stays there and since it's the last frame of the video, it appears to just freeze at the end for a second, before the next video starts. Then, you just repeat the process. Hope it helps.

User changing background image

I will do my very best to explain my issue.
I have 30 images in a gallery giving the user the choice to select an image and change the main view controller background image, much like the Apple wallpapers in the settings menu.
My problem is, I don't know how to implement this.
I though image picker was a solution but as the images are stored inside the app, is this the best?
I have a collection view controller displaying 30 images in cells. Click on the cell and it takes you to selected image in a new vc. How do I have a "Select" button from that image (or the other 29 images) vc to the main vc? Each image vc has a storyboard ID.
I haven't attached code because I haven't written any worth sharing. I'm stuck.
Please be kind to me, I'm just learning in this male dominated world.
Merci beaucoup

How can you display rows in 'dynamic' sizes using tableview of Corona SDK

I am using tableview to display a list of items
e.g.
list =
[
{name='bob',
description='really long description that can be multiple rows',
image='an image from my server',
},
...
]
the above is just an example. I got my data from my server, including images of variable sizes. My question is how do I display the correct row size(height) once I got image from the server. I understand that I can wait until all data and image has been downloaded from server. Then precompute the height. But I want to be able to display the text first (as texts are more likely to be firstly downloaded), then once there is an image in it, I download it again. After the image is downloaded, I want to resize the row height. How can I do that?
Create a multi-line display.newText() of the width you expect to put in the table view. When the object is created, grab it's height and then remove the object. Use that height + some padding for the row height. There may be performance issues with this, so as an alternate, keep the text object and pass it in as a parameter when you create the row.

Issue related to draggable content in famo.us

I have small application in famo.us framework. There are 5 images. I want drag images. requirement is like when i drag firstImage, second image should be visible behind the first image. i tried to show second image on dragging up of firstImage, but it hides firstimage.
so is it possible to show second image behind the first image ??
Thanks
Check the z position of your images. Chances are you're encountering z-fighting, where two elements exist on the same position on the same z-axis. Try changing the z-index of the images to different values first to see if that fixes it.
Otherwise, check the 3d-transform you've supplied to famous to make sure your images aren't resting on the same z-value.