PDA

View Full Version : image osd



yonu
September 26th, 2013, 03:57 PM
I hate to ask this but does anyone have a working example of the image OSD class I am kind of confused on how to implement it.

Thanks

yonu
October 7th, 2013, 03:10 PM
ok here is the code I have for my osd


ImageOSD = osd.Classes.Image:New({Fade=false})
ImageOSD:Show()
ImageOSD:Update([[C:\TEST.jpg]])

howevber when it is run I get
16:09:51:005 10/7/2013 OSD Image OSD image error

in the logger the files does exist at that location and that is exacly how it is named.

Thanks,
Yonu

yonu
October 8th, 2013, 11:38 AM
fixed issues turns out the example is not quite right

it is this

ImageOSD = osd.Classes.Image:New({Fade=false})
ImageOSD:Show()
ImageOSD:Update([[C:\TEST.jpg]])

it should be this

ImageOSD = osd.Classes.Image:New({Fade=false})
ImageOSD:Show()
ImageOSD:Update([[C:\TEST.jpg]])
ImageOSD:Show()