C# Class Papyrus.Types.RGBFormat

The RGBFormat object specifies how pixels are laid out in bits and bytes. Using this object, a rendering engine can generically set and get pixel values in a pixel buffer without having to explicitly hardcode for the format. Drawing using this mechanism would likely be very slow, but it makes it possible for all RGB circumstances. The format assumes a miximum of 32 bits per pixel
显示文件 Open project: Wiladams/NewTOAPIA

Public Properties

Property Type Description
RGB15 RGBFormat
RGB16 RGBFormat
RGB24 RGBFormat
RGB32 RGBFormat
RGBA15 RGBFormat
RGBA32 RGBFormat

Public Methods

Method Description
PrintBitmask ( uint mask ) : void
RGBFormat ( byte bperpixel, byte byperpixel, byte rsize, byte gsize, byte bsize, byte asize, byte rloss, byte gloss, byte bloss, byte aloss, byte rshft, byte gshft, byte bshft, byte ashft, uint rmsk, uint gmsk, uint bmsk, uint amsk ) : System

Private Methods

Method Description
CheckConsistancy ( ) : bool
GetMaskInfo ( uint mask, byte &shift, byte &precision ) : void

Method Details

PrintBitmask() public method

public PrintBitmask ( uint mask ) : void
mask uint
return void

RGBFormat() public method

public RGBFormat ( byte bperpixel, byte byperpixel, byte rsize, byte gsize, byte bsize, byte asize, byte rloss, byte gloss, byte bloss, byte aloss, byte rshft, byte gshft, byte bshft, byte ashft, uint rmsk, uint gmsk, uint bmsk, uint amsk ) : System
bperpixel byte
byperpixel byte
rsize byte
gsize byte
bsize byte
asize byte
rloss byte
gloss byte
bloss byte
aloss byte
rshft byte
gshft byte
bshft byte
ashft byte
rmsk uint
gmsk uint
bmsk uint
amsk uint
return System

Property Details

RGB15 public_oe static_oe property

public static RGBFormat,Papyrus.Types RGB15
return RGBFormat

RGB16 public_oe static_oe property

public static RGBFormat,Papyrus.Types RGB16
return RGBFormat

RGB24 public_oe static_oe property

public static RGBFormat,Papyrus.Types RGB24
return RGBFormat

RGB32 public_oe static_oe property

public static RGBFormat,Papyrus.Types RGB32
return RGBFormat

RGBA15 public_oe static_oe property

public static RGBFormat,Papyrus.Types RGBA15
return RGBFormat

RGBA32 public_oe static_oe property

public static RGBFormat,Papyrus.Types RGBA32
return RGBFormat