C# Class HaloMap.RawData.ParsedBitmap

Summary description for Bitmap.
Mostra file Open project: troymac1ure/Entity Class Usage Examples

Public Properties

Property Type Description
BitmapHeader HaloBitmapHeader
Properties BitmapInfo[]
headersize int

Public Methods

Method Description
ConvertCEtoH2ParsedBitmap ( Meta &meta, Map map ) : void

The convert c eto h 2 parsed bitmap.

DecodeBitm ( byte bitmBytes, int height, int width, int depth, int bitsPerPixel, BitmapType type, BitmapFormat format, bool swizzle, Map map, int visualchunkindex, int ident ) : Bitmap

The decode bitm.

FindChunkAndDecode ( int bitmap, int chunknumber, int mipmap, Meta &meta, Map map, int visualchunkindex, int bspnumber ) : Bitmap

The find chunk and decode.

ParsedBitmap ( Meta &meta, Map map ) : System

Initializes a new instance of the ParsedBitmap class.

ReadCEParsedBitmap ( Meta &meta ) : void

The read ce parsed bitmap.

ReadH2ParsedBitmap ( Meta &meta ) : void

The read h 2 parsed bitmap.

bitmapInternalize ( Meta bitmapMeta ) : void

The bitmap internalize.

bitmapInternalizeRaw ( RawDataContainer &raw, Map map ) : void

Internalizes a bitmap by passing raw data. This was primarily written for the bitmap internalization in the mainmenu editor.

Private Methods

Method Description
DecodeBitmap ( byte &fart, int height, int width, int depth, int bitsPerPixel, BitmapType type, BitmapFormat format, bool swizzle, Map map, int visualchunkindex, int ident ) : int

The decode bitmap.

RtlMoveMemory ( IntPtr dest, byte src, int cb ) : void
biGetRawTotalSize ( RawDataContainer raw, bool ignoreInternal ) : long

The bi get raw total size.

biUpdateMapInfo ( Map map, int change ) : void

The bi update map info.

genPadding ( int amount, byte type ) : byte[]

The gen padding.

genPaddingSize ( long totRawSize, int padToSize ) : int

The gen padding size.

shift ( FileStream FS, long offset, long size ) : void

The shift.

Method Details

ConvertCEtoH2ParsedBitmap() public method

The convert c eto h 2 parsed bitmap.
public ConvertCEtoH2ParsedBitmap ( Meta &meta, Map map ) : void
meta HaloMap.Meta.Meta The meta.
map HaloMap.Map.Map The map.
return void

DecodeBitm() public static method

The decode bitm.
/// ///
public static DecodeBitm ( byte bitmBytes, int height, int width, int depth, int bitsPerPixel, BitmapType type, BitmapFormat format, bool swizzle, Map map, int visualchunkindex, int ident ) : Bitmap
bitmBytes byte The bitm bytes.
height int The height.
width int The width.
depth int The depth.
bitsPerPixel int The bits per pixel.
type BitmapType The type.
format BitmapFormat The format.
swizzle bool The swizzle.
map HaloMap.Map.Map The map.
visualchunkindex int The visualchunkindex.
ident int The ident.
return System.Drawing.Bitmap

FindChunkAndDecode() public method

The find chunk and decode.
public FindChunkAndDecode ( int bitmap, int chunknumber, int mipmap, Meta &meta, Map map, int visualchunkindex, int bspnumber ) : Bitmap
bitmap int The bitmap.
chunknumber int The chunknumber.
mipmap int The mipmap.
meta HaloMap.Meta.Meta The meta.
map HaloMap.Map.Map The map.
visualchunkindex int The visualchunkindex.
bspnumber int The bspnumber.
return System.Drawing.Bitmap

ParsedBitmap() public method

Initializes a new instance of the ParsedBitmap class.
public ParsedBitmap ( Meta &meta, Map map ) : System
meta HaloMap.Meta.Meta The meta.
map HaloMap.Map.Map The map.
return System

ReadCEParsedBitmap() public method

The read ce parsed bitmap.
public ReadCEParsedBitmap ( Meta &meta ) : void
meta HaloMap.Meta.Meta The meta.
return void

ReadH2ParsedBitmap() public method

The read h 2 parsed bitmap.
public ReadH2ParsedBitmap ( Meta &meta ) : void
meta HaloMap.Meta.Meta The meta.
return void

bitmapInternalize() public static method

The bitmap internalize.
public static bitmapInternalize ( Meta bitmapMeta ) : void
bitmapMeta HaloMap.Meta.Meta The bitmap meta.
return void

bitmapInternalizeRaw() public static method

Internalizes a bitmap by passing raw data. This was primarily written for the bitmap internalization in the mainmenu editor.
public static bitmapInternalizeRaw ( RawDataContainer &raw, Map map ) : void
raw RawDataContainer Entity.RawDataContainer
map HaloMap.Map.Map Map to add data to
return void

Property Details

BitmapHeader public_oe property

The bitmap header.
public HaloBitmapHeader BitmapHeader
return HaloBitmapHeader

Properties public_oe property

The properties.
public BitmapInfo[] Properties
return BitmapInfo[]

headersize public_oe property

The headersize.
public int headersize
return int