Esempio n. 1
0
 def __init__(self, win_graphics, for_printing = False):
     self._win_graphics = win_graphics
     self._win_path = gdip.GraphicsPath()
     self._state = GState()
     self._stack = []
     if for_printing:
         unit = gdip.UnitPoint
         win_graphics.SetPageUnit(unit)
Esempio n. 2
0
    def __init__(self, win_graphics, for_printing = False):
        self._win_graphics = win_graphics
        self._win_path = gdip.GraphicsPath()
        self._state = GState()
        self._stack = []

        #Setup DC for Text Output
        ## dc = ui.CreateDCFromHandle(win_graphics.GetHDC())
        ## dc.SetBkMode(wc.TRANSPARENT)
        ## dc.SetTextAlign(wc.TA_LEFT | wc.TA_BASELINE | wc.TA_UPDATECP)
        ## self._win_dc = dc
        ## self._win_hdc = dc.GetSafeHdc()#HandleOutput()
        
        if for_printing:
            unit = gdip.UnitPoint
            win_graphics.SetPageUnit(unit)