Source language: Translate to:

Show Embedded Pictures in Rectangle or ?

General questions about NeoBook

Moderator: Neosoft Support

Show Embedded Pictures in Rectangle or ?

Postby StarterPack » Mon Mar 13, 2017 2:16 am

Hi guys, I have 5 pictures embedded, how can I display the pictures in a Rectangle, hotspot, picture etc. I don't want to display all 5 at once, but if I use the "If" command, it must display a certain picture

Thank You
StarterPack
 
Posts: 115
Joined: Fri Feb 19, 2016 6:55 am

Re: Show Embedded Pictures in Rectangle or ?

Postby Gaev » Mon Mar 13, 2017 6:19 am

StarterPack:

Take a look at SetObjectFileName ... if ...
Code: Select all
SetObjectFileName "Picture1" "[Embedded]myImage1.jpg"

... does not work, you will have to Extract the file first ...
Code: Select all
ExtractFile "[Embedded]myImage1.jpg" "[TempDir]myImage1.jpg"
User avatar
Gaev
 
Posts: 3737
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada

Re: Show Embedded Pictures in Rectangle or ?

Postby StarterPack » Mon Mar 13, 2017 2:28 pm

Take a look at SetObjectFileName


Thanks again Gaev, this is just what I need

Allthough, I can still use the If command now without extracting the files first

Code: Select all
If "[PicNum]" "=" "1"
SetObjectFileName "Picture" "[Embedded]Picture1.jpg"
Else
EndIf
If "[PicNum]" "=" "2"
SetObjectFileName "Picture" "[Embedded]Picture2.jpg"
Else
EndIf
StarterPack
 
Posts: 115
Joined: Fri Feb 19, 2016 6:55 am


Return to General NeoBook Discussions

Who is online

Users browsing this forum: No registered users and 1 guest

cron