|
SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
Is MediaFile Required?
I have some JPEG images that I want to show thumbnails of in a menu. The only way I have been able to get them to show is to do something similar to the following:
Code:
+ currFile = new_java_io_File(filename) + if GetMediaFileForFilePath(currfile) == null + true + AddMediaFile(currfile, "") + Refresh() + GetThumbnail(GetMediaFileForFilePath(currfile)) + false + GetThumbnail(GetMediaFileForFilePath(currfile)) -pic- Untitled Thanks for any help! Last edited by aperry; 04-17-2006 at 10:22 PM. |
#2
|
||||
|
||||
No, you don't need to do all that. There are several simpler ways to do it.
1. Call LoadImageFile with the filename, and pass that in to the Image widget. 2. Create a java.io.File, and pass that in to the Image widget. 3. Put the filename string into an attribute variable, and reference the variable from the Image widget's Source File property.
__________________
-- Greg |
#3
|
||||
|
||||
Cool, thanks. I went with option 1. Worked great!
|
#4
|
||||
|
||||
You can also just pass the string itself into the Image Widget(by using an Action parent). It'll then load the image from the path/URL or whatever it was given.
__________________
Jeffrey Kardatzke Founder of SageTV |
#5
|
||||
|
||||
Rats! I missed a chance to post a manual reference for p. 37 of the v4.1 Studio manual. Oh well, it is never too late, I suppose.
- Andy
__________________
SageTV Open Source v9 is available. - Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1. - Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus - HD Extenders: A) FAQs B) URC MX-700 remote setup Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request. |
#6
|
||||
|
||||
Quote:
I'm sure there's going to be about 23490084 things I could have done better in my STVI, and hopefully as time goes on, I'll learn these... Last edited by aperry; 04-18-2006 at 02:44 PM. |
#7
|
||||
|
||||
Quote:
|
#8
|
||||
|
||||
Quote:
(That's the page for the Image Widget details.) - Andy
__________________
SageTV Open Source v9 is available. - Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1. - Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus - HD Extenders: A) FAQs B) URC MX-700 remote setup Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request. |
#9
|
||||
|
||||
Quote:
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|