C# Class PluginVideoNes.Video

Inheritance: IVideoPluginNes
显示文件 Open project: spiiin/CadEditor

Public Properties

Property Type Description
CHUNK_COUNT int
CadObjectTypeColors Color[]
NES_COLORS_COUNT int
nesColors Color[]

Public Methods

Method Description
getName ( ) : string
makeBigBlock ( int i, BigBlock bigBlocks, Image smallBlockss ) : Bitmap
makeBigBlockCapcom ( int i, BigBlock bigBlocks, Image smallBlockss ) : Bitmap
makeBigBlockTT ( int i, BigBlock bigBlocks, Image smallBlocksAll ) : Bitmap
makeBigBlocks ( int videoNo, int bigBlockNo, BigBlock bigBlockIndexes, int palleteNo, MapViewType smallObjectsViewType = MapViewType.Tiles, float smallBlockScaleFactor = 2.0f, float curButtonScale = 2, MapViewType curViewType = MapViewType.Tiles, bool showAxis = false, int hierarchyLevel ) : Image[]
makeBigBlocks ( int videoNo, int bigBlockNo, int blockNo, int palleteNo, MapViewType smallObjectsViewType = MapViewType.Tiles, float smallBlockScaleFactor = 2.0f, float curButtonScale = 2, MapViewType curViewType = MapViewType.Tiles, bool showAxis = false, int hierarchyLevel ) : Image[]
makeImage ( int index, byte videoChunk, byte pallete, int subPalIndex, float scale, bool scaleAccurate = true, bool withAlpha = false ) : Bitmap
makeImageRectangle ( byte videoChunk, byte pallete, int subPalIndex, float scale, bool scaleAccurate = true, bool withAlpha = false ) : Bitmap
makeImageStrip ( byte videoChunk, byte pallete, int subPalIndex, float scale, bool scaleAccurate = true, bool withAlpha = false ) : Bitmap
makeObject ( int index, CadEditor.ObjRec objects, Bitmap objStrips, float scale, MapViewType drawType, int constantSubpal = -1 ) : Bitmap
makeObjectsRectangle ( byte videoPageId, byte tilesId, byte palId, float scale, MapViewType drawType, int constantSubpal = -1 ) : Bitmap
makeObjectsStrip ( byte videoPageId, byte tilesId, byte palId, float scale, MapViewType drawType, int constantSubpal = -1 ) : Bitmap
makeScreen ( int scrNo, int levelNo, int videoNo, int bigBlockNo, int blockNo, int palleteNo, float scale = 2.0f, bool withBorders = true ) : Bitmap
updateColorsFromConfig ( ) : void

Private Methods

Method Description
Video ( ) : System
getTTSmallBlocksColorByte ( int index ) : byte
mixBits ( bool hi, bool lo ) : int

Method Details

getName() public method

public getName ( ) : string
return string

makeBigBlock() public method

public makeBigBlock ( int i, BigBlock bigBlocks, Image smallBlockss ) : Bitmap
i int
bigBlocks BigBlock
smallBlockss Image
return System.Drawing.Bitmap

makeBigBlockCapcom() public method

public makeBigBlockCapcom ( int i, BigBlock bigBlocks, Image smallBlockss ) : Bitmap
i int
bigBlocks BigBlock
smallBlockss Image
return System.Drawing.Bitmap

makeBigBlockTT() public method

public makeBigBlockTT ( int i, BigBlock bigBlocks, Image smallBlocksAll ) : Bitmap
i int
bigBlocks BigBlock
smallBlocksAll Image
return System.Drawing.Bitmap

makeBigBlocks() public method

public makeBigBlocks ( int videoNo, int bigBlockNo, BigBlock bigBlockIndexes, int palleteNo, MapViewType smallObjectsViewType = MapViewType.Tiles, float smallBlockScaleFactor = 2.0f, float curButtonScale = 2, MapViewType curViewType = MapViewType.Tiles, bool showAxis = false, int hierarchyLevel ) : Image[]
videoNo int
bigBlockNo int
bigBlockIndexes BigBlock
palleteNo int
smallObjectsViewType MapViewType
smallBlockScaleFactor float
curButtonScale float
curViewType MapViewType
showAxis bool
hierarchyLevel int
return Image[]

makeBigBlocks() public method

public makeBigBlocks ( int videoNo, int bigBlockNo, int blockNo, int palleteNo, MapViewType smallObjectsViewType = MapViewType.Tiles, float smallBlockScaleFactor = 2.0f, float curButtonScale = 2, MapViewType curViewType = MapViewType.Tiles, bool showAxis = false, int hierarchyLevel ) : Image[]
videoNo int
bigBlockNo int
blockNo int
palleteNo int
smallObjectsViewType MapViewType
smallBlockScaleFactor float
curButtonScale float
curViewType MapViewType
showAxis bool
hierarchyLevel int
return Image[]

makeImage() public method

public makeImage ( int index, byte videoChunk, byte pallete, int subPalIndex, float scale, bool scaleAccurate = true, bool withAlpha = false ) : Bitmap
index int
videoChunk byte
pallete byte
subPalIndex int
scale float
scaleAccurate bool
withAlpha bool
return System.Drawing.Bitmap

makeImageRectangle() public method

public makeImageRectangle ( byte videoChunk, byte pallete, int subPalIndex, float scale, bool scaleAccurate = true, bool withAlpha = false ) : Bitmap
videoChunk byte
pallete byte
subPalIndex int
scale float
scaleAccurate bool
withAlpha bool
return System.Drawing.Bitmap

makeImageStrip() public method

public makeImageStrip ( byte videoChunk, byte pallete, int subPalIndex, float scale, bool scaleAccurate = true, bool withAlpha = false ) : Bitmap
videoChunk byte
pallete byte
subPalIndex int
scale float
scaleAccurate bool
withAlpha bool
return System.Drawing.Bitmap

makeObject() public method

public makeObject ( int index, CadEditor.ObjRec objects, Bitmap objStrips, float scale, MapViewType drawType, int constantSubpal = -1 ) : Bitmap
index int
objects CadEditor.ObjRec
objStrips System.Drawing.Bitmap
scale float
drawType MapViewType
constantSubpal int
return System.Drawing.Bitmap

makeObjectsRectangle() public method

public makeObjectsRectangle ( byte videoPageId, byte tilesId, byte palId, float scale, MapViewType drawType, int constantSubpal = -1 ) : Bitmap
videoPageId byte
tilesId byte
palId byte
scale float
drawType MapViewType
constantSubpal int
return System.Drawing.Bitmap

makeObjectsStrip() public method

public makeObjectsStrip ( byte videoPageId, byte tilesId, byte palId, float scale, MapViewType drawType, int constantSubpal = -1 ) : Bitmap
videoPageId byte
tilesId byte
palId byte
scale float
drawType MapViewType
constantSubpal int
return System.Drawing.Bitmap

makeScreen() public method

public makeScreen ( int scrNo, int levelNo, int videoNo, int bigBlockNo, int blockNo, int palleteNo, float scale = 2.0f, bool withBorders = true ) : Bitmap
scrNo int
levelNo int
videoNo int
bigBlockNo int
blockNo int
palleteNo int
scale float
withBorders bool
return System.Drawing.Bitmap

updateColorsFromConfig() public method

public updateColorsFromConfig ( ) : void
return void

Property Details

CHUNK_COUNT public_oe static_oe property

public static int CHUNK_COUNT
return int

CadObjectTypeColors public_oe static_oe property

public static Color[] CadObjectTypeColors
return Color[]

NES_COLORS_COUNT public_oe static_oe property

public static int NES_COLORS_COUNT
return int

nesColors public_oe static_oe property

public static Color[] nesColors
return Color[]