コード例 #1
0
 internal bool load(CSXml.cXml xDoc, XmlNode nodeObj)
 {
     nodeObj = xDoc.getNodeFromNode(nodeObj, "Image");
     byte[] vBytes = null;
     vBytes = xDoc.getBinaryNodeProperty(nodeObj, "Data").getBinaryValue();
     //
     // an empty image is serialized as AA== which is vBytes == [0] ( yes the number zero ) and vBytes.Length == 1
     //
     if (vBytes.Length > 1)
     {
         m_image = cImage.deSerialiseBitmap(vBytes);
     }
     G.redim(ref vBytes, 0);
     return m_aspect.load(xDoc, nodeObj);
 }