home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
Watch / Listen Media
View Pictures
Test application: For "lightning fast thumbnail creation"
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="lkuech" data-source="post: 169439" data-attributes="member: 46526"><p>I just took a brief look at the source code of MyPicture section of MP.</p><p></p><p>It seams that the integration becomes more complicated as I thought. </p><p></p><p>From my brief research I did not found a method that allows me to set the shown Thumb in the facadeView at runtime without loading a file from disk. All available methods seem to based on loading files (thumbs) from the harddrive, but that (of course) will slow down the whole routine because I have to save the thumb just to load it afterwards.</p><p></p><p>I've found the implementation of the OnRetrieveCoverArt. At this point it would easy to "turn to" my ExifExtractor to check if the item has an embedded and retrieve it. But how can I assign the retrieved image the the facadeView?</p><p></p><p>I tried something like this for testing (in the OnRetrieveCoverArt):</p><p>[CODE]</p><p>Bitmap tmpBitmap = new Bitmap(160, 120);</p><p>Graphics tmpGraphics = Graphics.FromImage(tmpBitmap);</p><p>tmpGraphics.FillEllipse(Brushes.Red,new Rectangle( 0, 0, 160, 120));</p><p></p><p>System.Drawing.Image img = (Image)tmpBitmap.Clone();</p><p></p><p>item.Thumbnail.MemoryImage = img;[/CODE]</p><p>But item.Thumbnail is always null. And create new GUIImage seems to need a filename again ... <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /></p><p></p><p>The following code does work (Of course)... but this no solution.</p><p>[CODE]</p><p>Bitmap tmpBitmap = new Bitmap(160, 120);</p><p>Graphics tmpGraphics = Graphics.FromImage(tmpBitmap);</p><p>tmpGraphics.FillEllipse(Brushes.Red,new Rectangle( 0, 0, 160, 120));</p><p></p><p>System.Drawing.Image img = (Image)tmpBitmap.Clone();</p><p>img.Save("C:\\test.jpg", ImageFormat.Jpeg);</p><p></p><p>string thumbnailImage = "C:\\test.jpg";</p><p>item.ThumbnailImage = thumbnailImage;[/CODE]</p><p></p><p>Any ideas?</p><p></p><p>Bye</p><p>Lars</p></blockquote><p></p>
[QUOTE="lkuech, post: 169439, member: 46526"] I just took a brief look at the source code of MyPicture section of MP. It seams that the integration becomes more complicated as I thought. From my brief research I did not found a method that allows me to set the shown Thumb in the facadeView at runtime without loading a file from disk. All available methods seem to based on loading files (thumbs) from the harddrive, but that (of course) will slow down the whole routine because I have to save the thumb just to load it afterwards. I've found the implementation of the OnRetrieveCoverArt. At this point it would easy to "turn to" my ExifExtractor to check if the item has an embedded and retrieve it. But how can I assign the retrieved image the the facadeView? I tried something like this for testing (in the OnRetrieveCoverArt): [CODE] Bitmap tmpBitmap = new Bitmap(160, 120); Graphics tmpGraphics = Graphics.FromImage(tmpBitmap); tmpGraphics.FillEllipse(Brushes.Red,new Rectangle( 0, 0, 160, 120)); System.Drawing.Image img = (Image)tmpBitmap.Clone(); item.Thumbnail.MemoryImage = img;[/CODE] But item.Thumbnail is always null. And create new GUIImage seems to need a filename again ... :( The following code does work (Of course)... but this no solution. [CODE] Bitmap tmpBitmap = new Bitmap(160, 120); Graphics tmpGraphics = Graphics.FromImage(tmpBitmap); tmpGraphics.FillEllipse(Brushes.Red,new Rectangle( 0, 0, 160, 120)); System.Drawing.Image img = (Image)tmpBitmap.Clone(); img.Save("C:\\test.jpg", ImageFormat.Jpeg); string thumbnailImage = "C:\\test.jpg"; item.ThumbnailImage = thumbnailImage;[/CODE] Any ideas? Bye Lars [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Watch / Listen Media
View Pictures
Test application: For "lightning fast thumbnail creation"
Contact us
RSS
Top
Bottom