C# Class IPod.ArtworkHelpers

Show file Open project: mono/ipod-sharp

Public Methods

Method Description
ToBytes ( ArtworkFormat format, Gdk pixbuf ) : byte[]
ToBytes ( ArtworkFormat format, Gdk pixbuf, short &horizontalPadding, short &verticalPadding ) : byte[]
ToPixbuf ( ArtworkFormat format, byte data ) : Gdk.Pixbuf

Private Methods

Method Description
ArtworkHelpers ( ) : System
Clamp ( int val, int bottom, int top ) : int
PackIYUV ( Gdk src ) : byte[]
PackRgb565 ( Gdk src, bool IsBigEndian ) : byte[]
Rotate ( Gdk pixbuf, int angle ) : Gdk.Pixbuf
Scale ( Gdk pixbuf, int width, int height, int &widthPadding, int &heightPadding ) : Gdk.Pixbuf
UnpackIYUV ( byte data, Gdk dest ) : void
UnpackRgb565 ( byte data, Gdk dest, bool isbe ) : void
UnpackYUV ( ushort y, ushort u, ushort v, int &r, int &g, int &b ) : void

Method Details

ToBytes() public static method

public static ToBytes ( ArtworkFormat format, Gdk pixbuf ) : byte[]
format ArtworkFormat
pixbuf Gdk
return byte[]

ToBytes() public static method

public static ToBytes ( ArtworkFormat format, Gdk pixbuf, short &horizontalPadding, short &verticalPadding ) : byte[]
format ArtworkFormat
pixbuf Gdk
horizontalPadding short
verticalPadding short
return byte[]

ToPixbuf() public static method

public static ToPixbuf ( ArtworkFormat format, byte data ) : Gdk.Pixbuf
format ArtworkFormat
data byte
return Gdk.Pixbuf