Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   Winamp Wishlist (http://forums.winamp.com/forumdisplay.php?f=3)
-   -   Album Art Control for Portable Devices (http://forums.winamp.com/showthread.php?t=336701)

xpmule 29th October 2011 04:36

Album Art Control for Portable Devices
 
Any kind of control over the album art functionality when copying tracks/albums from the media library to a portable device using MTP would be great.
That was a mouth full :eek:

If i was coding winamp i would add the following for Portables (mine anyway)
- add a function to "copy any found folder.jpg's"
- add an option to disable transfering album art (kill the .alb file creation if possible)
- add an option to stretch / resize art if needed (couple lines of code with c++ gdi can do that)

Seriously guys come on ........................

Its not that hard to resize a .jpeg image..



code:

Gdiplus::Bitmap* CImageTools::ResizeClone( Bitmap *bmp )
{
if ( g_bGDIRunning == TRUE )
{
UINT height = bmp->GetHeight();
UINT width = bmp->GetWidth();

if ( height != width ) { Trace( "Album Art Not Squared" ); }

Gdiplus::Bitmap* newBitmap = new Gdiplus::Bitmap( 220, 220, PixelFormat24bppRGB );
Gdiplus::Graphics graphics( newBitmap );
graphics.DrawImage( bmp, 0, 0, 220, 220 );

return newBitmap;
}
}



All times are GMT. The time now is 22:40.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.