C# Class DroidExplorer.Core.Adb.RawImage

Data representing an image taken from a device frame buffer.
显示文件 Open project: camalot/droidexplorer Class Usage Examples

Public Methods

Method Description
GetHeaderSize ( int version ) : int
GetRotated ( ) : RawImage
RawImage ( ) : System

Initializes a new instance of the RawImage class.

ReadHeader ( int version, BinaryReader buf ) : bool
ToImage ( ) : Image

Converts this raw image to an Image

ToImage ( PixelFormat format ) : Image

Converts this raw image to an Image

ToString ( ) : string

Returns a System.String that represents this instance.

Private Methods

Method Description
Swap ( byte b ) : byte[]

Method Details

GetHeaderSize() public static method

public static GetHeaderSize ( int version ) : int
version int
return int

GetRotated() public method

public GetRotated ( ) : RawImage
return RawImage

RawImage() public method

Initializes a new instance of the RawImage class.
public RawImage ( ) : System
return System

ReadHeader() public method

public ReadHeader ( int version, BinaryReader buf ) : bool
version int
buf System.IO.BinaryReader
return bool

ToImage() public method

Converts this raw image to an Image
public ToImage ( ) : Image
return Image

ToImage() public method

Converts this raw image to an Image
public ToImage ( PixelFormat format ) : Image
format PixelFormat The format.
return Image

ToString() public method

Returns a System.String that represents this instance.
public ToString ( ) : string
return string