public MHBitmap(MHBitmap reference) { m_fTiling = reference.m_fTiling; m_nOrigTransparency = reference.m_nOrigTransparency; m_nXDecodeOffset = 0; m_nYDecodeOffset = 0; m_pContent = null; }
protected IMHBitmapDisplay m_pContent; // current image if any. public MHBitmap() { m_fTiling = false; m_nOrigTransparency = 0; m_nXDecodeOffset = 0; m_nYDecodeOffset = 0; m_pContent = null; }
public override void Initialise(MHParseNode p, MHEngine engine) { base.Initialise(p, engine); // Tiling - optional MHParseNode pTiling = p.GetNamedArg(ASN1Codes.C_TILING); if (pTiling != null) { m_fTiling = pTiling.GetArgN(0).GetBoolValue(); } // Transparency - optional MHParseNode pTransparency = p.GetNamedArg(ASN1Codes.C_ORIGINAL_TRANSPARENCY); if (pTransparency != null) { m_nOrigTransparency = pTransparency.GetArgN(0).GetIntValue(); } m_pContent = engine.GetContext().CreateBitmap(m_fTiling); }