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
Language specific support
Deutsches MediaPortal Forum
Plugins & Skins für das MediaPortal
Plugins & Erweiterungen
MPDisplay++ (discontinued)
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="BassFan" data-source="post: 1080232"><p>Dann ist das aber kein Problem mit mpd++ sondern mit Fanart <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p><p>Hier wird dann nicht geprüft in welcher Komprimierung / Bittiefe das Jpg vorliegt und ob es Metadaten enthält.</p><p> </p><p>Ich kopiere daher meine JPG's (Programmtechnisch) vorher in ein Bitmap drehe es um und tausche die Farben.</p><p> </p><p>[code] // Create Bitmap</p><p> BMP := TBitmap.Create;</p><p> BMP.pixelformat := pf32bit;</p><p> BMP.Width := JPG.Width;</p><p> BMP.Height := JPG.Height;</p><p> BMP.canvas.draw(0, 0, JPG); // Copy the JPEG onto the Bitmap</p><p> </p><p> Width := BMP.Width;</p><p> Height := BMP.Height;</p><p> SetLength(Data, Width * Height);</p><p> </p><p> for H := 0 to Height - 1 do</p><p> begin</p><p> Line := BMP.scanline[Height - H - 1]; // flip JPEG</p><p> for W := 0 to Width - 1 do</p><p> begin</p><p> c := Line^ and $FFFFFF; // Need to do a color swap</p><p> Data[W + (H * Width)] := (((c and $FF) shl 16) + (c shr 16) + (c and $FF00)) or $FF000000;</p><p> // 4 channel.</p><p> Inc(Line);</p><p> end;</p><p> end;</p><p> </p><p> BMP.Free;</p><p> JPG.Free;[/code]</p><p> </p><p>aber wie gesagt das muss man im Fanart-Plugin ändern.</p><p>oder an der stelle wo die Bilder übergeben werden.</p><p>mpd++ sollte eigentlich davon ausgehen können das die richtigen Bild Daten geliefert werden</p><p>und nicht im nachhinein da selbst noch was ändern müssen.</p><p> </p><p>gruss</p></blockquote><p></p>
[QUOTE="BassFan, post: 1080232"] Dann ist das aber kein Problem mit mpd++ sondern mit Fanart ;) Hier wird dann nicht geprüft in welcher Komprimierung / Bittiefe das Jpg vorliegt und ob es Metadaten enthält. Ich kopiere daher meine JPG's (Programmtechnisch) vorher in ein Bitmap drehe es um und tausche die Farben. [code] // Create Bitmap BMP := TBitmap.Create; BMP.pixelformat := pf32bit; BMP.Width := JPG.Width; BMP.Height := JPG.Height; BMP.canvas.draw(0, 0, JPG); // Copy the JPEG onto the Bitmap Width := BMP.Width; Height := BMP.Height; SetLength(Data, Width * Height); for H := 0 to Height - 1 do begin Line := BMP.scanline[Height - H - 1]; // flip JPEG for W := 0 to Width - 1 do begin c := Line^ and $FFFFFF; // Need to do a color swap Data[W + (H * Width)] := (((c and $FF) shl 16) + (c shr 16) + (c and $FF00)) or $FF000000; // 4 channel. Inc(Line); end; end; BMP.Free; JPG.Free;[/code] aber wie gesagt das muss man im Fanart-Plugin ändern. oder an der stelle wo die Bilder übergeben werden. mpd++ sollte eigentlich davon ausgehen können das die richtigen Bild Daten geliefert werden und nicht im nachhinein da selbst noch was ändern müssen. gruss [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Language specific support
Deutsches MediaPortal Forum
Plugins & Skins für das MediaPortal
Plugins & Erweiterungen
MPDisplay++ (discontinued)
Contact us
RSS
Top
Bottom