C# 클래스 Recurity.Swf.ShapeWithStyle

The SHAPEWITHSTYLE structure extends the SHAPE structure by including fill style and

line style information. SHAPEWITHSTYLE is used by the DefineShape tag.

The story of byte aligness is the following. Structures are byte aligned if they only read byte aligned

structures or if the last read opreration has been an integer type or an other byte aligned structure. Sounds

complicated but it isn't.

 

Lets assume Stream.Postion is 0 and BitStream.Position is 0.

 

we read 3 bits: bits.GetBits( 3 ); Stream.Postion is 1 and BitStream.Position is 3

we read a byte: br.ReadByte(); Stream.Postion is 2 and BitStream.Position is 3

we read 3 bits: bits.GetBits( 3 ); Stream.Postion is 3 and BitStream.Position is 6

 

but after reading a byte aligned structure the first 3 bits should be {0,1,2}.

That is the reason why we have to reset the BitStream.Position before or after we red a byte aligned

structure.

상속: AbstractSwfElement
파일 보기 프로젝트 열기: rtezli/Blitzableiter

보호된 프로퍼티들

프로퍼티 타입 설명
_fillStyles FillStyleArray
_lineStyles LineStyleArray
_numFillBits System.UInt16
_numLineBits System.UInt16
_shapeRecordBuffer byte[]
_shapeRecordStream System.IO.MemoryStream
_shapeRecords List

공개 메소드들

메소드 설명
Parse ( Stream input, long length, TagTypes caller ) : void

Parses this object out of a stream.

ShapeWithStyle ( byte InitialVersion ) : System

ToString ( ) : string

Converts the value of this instance to a System.String.

TryParseShapeRecords ( MemoryStream input, TagTypes caller ) : void

Verify ( ) : bool

Verifies this object and its components for documentation compliance.

Write ( Stream output ) : void

Writes this object back to a stream.

메소드 상세

Parse() 공개 메소드

Parses this object out of a stream.
public Parse ( Stream input, long length, TagTypes caller ) : void
input Stream The input Stream
length long The length of the ShapeRecords
caller TagTypes The tag that calls this method
리턴 void

ShapeWithStyle() 공개 메소드

public ShapeWithStyle ( byte InitialVersion ) : System
InitialVersion byte The initial version of the Swf file
리턴 System

ToString() 공개 메소드

Converts the value of this instance to a System.String.
public ToString ( ) : string
리턴 string

TryParseShapeRecords() 공개 메소드

public TryParseShapeRecords ( MemoryStream input, TagTypes caller ) : void
input System.IO.MemoryStream
caller TagTypes
리턴 void

Verify() 공개 메소드

Verifies this object and its components for documentation compliance.
public Verify ( ) : bool
리턴 bool

Write() 공개 메소드

Writes this object back to a stream.
public Write ( Stream output ) : void
output Stream The stream to write to.
리턴 void

프로퍼티 상세

_fillStyles 보호되어 있는 프로퍼티

protected FillStyleArray,Recurity.Swf _fillStyles
리턴 FillStyleArray

_lineStyles 보호되어 있는 프로퍼티

protected LineStyleArray,Recurity.Swf _lineStyles
리턴 LineStyleArray

_numFillBits 보호되어 있는 프로퍼티

protected UInt16,System _numFillBits
리턴 System.UInt16

_numLineBits 보호되어 있는 프로퍼티

protected UInt16,System _numLineBits
리턴 System.UInt16

_shapeRecordBuffer 보호되어 있는 프로퍼티

protected byte[] _shapeRecordBuffer
리턴 byte[]

_shapeRecordStream 보호되어 있는 프로퍼티

protected MemoryStream,System.IO _shapeRecordStream
리턴 System.IO.MemoryStream

_shapeRecords 보호되어 있는 프로퍼티

protected List _shapeRecords
리턴 List