Ejemplo n.º 1
0
 def dump(self):
     self.printAndSet("Size", self.readuInt32())
     self.printAndSet("Type", self.readuInt32())
     self.printAndSet("CountRects", self.readuInt32())
     self.printAndSet("RgnSize", self.readuInt32())
     wmfrecord.RectL(self, "Bounds").dump()
     self.parent.pos = self.pos
Ejemplo n.º 2
0
 def dump(self):
     posOrig = self.pos
     self.printAndSet("Type", self.readuInt32())
     self.printAndSet("Size", self.readuInt32(), hexdump=False)
     wmfrecord.RectL(self, "Bounds").dump()
     self.printAndSet("xDest", self.readInt32(), hexdump=False)
     self.printAndSet("yDest", self.readInt32(), hexdump=False)
     self.printAndSet("xSrc", self.readInt32(), hexdump=False)
     self.printAndSet("ySrc", self.readInt32(), hexdump=False)
     self.printAndSet("cxSrc", self.readInt32(), hexdump=False)
     self.printAndSet("cySrc", self.readInt32(), hexdump=False)
     self.printAndSet("offBmiSrc", self.readuInt32(), hexdump=False)
     self.printAndSet("cbBmiSrc", self.readuInt32(), hexdump=False)
     self.printAndSet("offBitsSrc", self.readuInt32(), hexdump=False)
     self.printAndSet("cbBitsSrc", self.readuInt32(), hexdump=False)
     self.printAndSet("UsageSrc", self.readInt32(), dict=DIBColors)
     self.printAndSet("BitBltRasterOperation",
                      self.readuInt32(),
                      dict=wmfrecord.RasterPolishMap)
     self.printAndSet("cxDest", self.readInt32(), hexdump=False)
     self.printAndSet("cyDest", self.readInt32(), hexdump=False)
     print '<BitmapBuffer>'
     if self.cbBmiSrc:
         self.pos = posOrig + self.offBmiSrc
         self.BmiSrc = self.readBytes(self.cbBmiSrc)
         print '<BmiSrc value="%s"/>' % base64.b64encode(self.BmiSrc)
     if self.cbBitsSrc:
         self.pos = posOrig + self.offBitsSrc
         self.BitsSrc = self.readBytes(self.cbBitsSrc)
         print '<BitsSrc value="%s"/>' % base64.b64encode(self.BitsSrc)
     print '</BitmapBuffer>'
     assert self.pos - posOrig == self.Size
Ejemplo n.º 3
0
 def dump(self):
     print '<%s>' % self.name
     header = RegionDataHeader(self)
     header.dump()
     for i in range(header.CountRects):
         wmfrecord.RectL(self, "Data%d" % i).dump()
     print '</%s>' % self.name
     self.parent.pos = self.pos
Ejemplo n.º 4
0
 def dump(self):
     posOrig = self.pos
     self.printAndSet("Type", self.readuInt32())
     self.printAndSet("Size", self.readuInt32(), hexdump=False)
     wmfrecord.RectL(self, "Bounds").dump()
     self.printAndSet("Count", self.readuInt32(), hexdump=False)
     print '<aPoints>'
     for i in range(self.Count):
         wmfrecord.PointS(self, "aPoint%d" % i).dump()
     print '</aPoints>'
     assert self.pos - posOrig == self.Size
Ejemplo n.º 5
0
 def dump(self):
     posOrig = self.pos
     print("<header>")
     wmfrecord.RectL(self, "Bounds").dump()
     wmfrecord.RectL(self, "Frame").dump()
     self.printAndSet("RecordSignature",
                      self.readuInt32(),
                      dict=FormatSignature)
     self.printAndSet("Version", self.readuInt32())
     self.printAndSet("Bytes", self.readuInt32(), hexdump=False)
     self.printAndSet("Records", self.readuInt32(), hexdump=False)
     self.printAndSet("Handles", self.readuInt16(), hexdump=False)
     self.printAndSet("Reserved", self.readuInt16(), hexdump=False)
     self.printAndSet("nDescription", self.readuInt32(), hexdump=False)
     self.printAndSet("offDescription", self.readuInt32(), hexdump=False)
     self.printAndSet("nPalEntries", self.readuInt32(), hexdump=False)
     wmfrecord.SizeL(self, "Device").dump()
     wmfrecord.SizeL(self, "Millimeters").dump()
     print("</header>")
     assert posOrig == self.pos - 80
     self.parent.pos = self.pos
Ejemplo n.º 6
0
 def dump(self):
     posOrig = self.pos
     self.printAndSet("Type", self.readuInt32())
     self.printAndSet("Size", self.readuInt32(), hexdump=False)
     wmfrecord.RectL(self, "Bounds").dump()
     self.printAndSet("xDest", self.readInt32(), hexdump=False)
     self.printAndSet("yDest", self.readInt32(), hexdump=False)
     self.printAndSet("cxDest", self.readInt32(), hexdump=False)
     self.printAndSet("cyDest", self.readInt32(), hexdump=False)
     self.printAndSet("BitBltRasterOperation",
                      self.readuInt32(),
                      dict=wmfrecord.RasterPolishMap)
     self.printAndSet("xSrc", self.readInt32(), hexdump=False)
     self.printAndSet("ySrc", self.readInt32(), hexdump=False)
     XForm(self, "XformSrc").dump()
     wmfrecord.ColorRef(self, "BkColorSrc").dump()
     self.printAndSet("UsageSrc", self.readInt32(), dict=DIBColors)
     self.printAndSet("offBmiSrc", self.readuInt32())
     self.printAndSet("cbBmiSrc", self.readuInt32())
     self.printAndSet("offBitsSrc", self.readuInt32())
     self.printAndSet("cbBitsSrc", self.readuInt32())
     assert self.pos - posOrig == self.Size
Ejemplo n.º 7
0
 def dump(self):
     posOrig = self.pos
     self.printAndSet("Type", self.readuInt32())
     self.printAndSet("Size", self.readuInt32(), hexdump=False)
     wmfrecord.RectL(self, "Bounds").dump()
     assert self.pos - posOrig == self.Size