Did I find the right examples for you? yes no

All Samples(51)  |  Call(51)  |  Derive(0)  |  Import(0)

src/p/y/pypdflib-0.1.a3/src/pypdflib/writer.py   pypdflib(Download)
        data =image_surface.get_data()
        stride = cairo.ImageSurface.format_stride_for_width (cairo.FORMAT_ARGB32, w)
        image_surface = cairo.ImageSurface.create_for_data(data, cairo.FORMAT_ARGB32, w, h,stride)
        self.assert_page_break()
        self.context.scale(0.5, 0.5)

src/p/y/pypdflib-HEAD/src/pypdflib/writer.py   pypdflib(Download)
        data =image_surface.get_data()
        stride = cairo.ImageSurface.format_stride_for_width (cairo.FORMAT_ARGB32, w)
        image_surface = cairo.ImageSurface.create_for_data(data, cairo.FORMAT_ARGB32, w, h,stride)
        self.assert_page_break()
        self.context.scale(0.5, 0.5)

src/g/i/ginga-2.0.20140425003909/ginga/cairow/ImageViewCairo.py   ginga(Download)
                                                            width)
 
        img_surface = cairo.ImageSurface.create_for_data(arr8,
                                                         cairo.FORMAT_RGB24,
                                                         dawd, daht, stride)
                                                            width)
 
        surface = cairo.ImageSurface.create_for_data(arr8,
                                                     cairo.FORMAT_RGB24,
                                                     width, height, stride)

src/g/i/ginga-HEAD/ginga/cairow/ImageViewCairo.py   ginga(Download)
                                                            width)
 
        img_surface = cairo.ImageSurface.create_for_data(arr8,
                                                         cairo.FORMAT_RGB24,
                                                         dawd, daht, stride)
                                                            width)
 
        surface = cairo.ImageSurface.create_for_data(arr8,
                                                     cairo.FORMAT_RGB24,
                                                     width, height, stride)

src/g/i/ginga-2.0.20140425003909/ginga/gtkw/ColorBar.py   ginga(Download)
        stride = cairo.ImageSurface.format_stride_for_width(cairo.FORMAT_RGB24,
                                                            width)
        surface = cairo.ImageSurface.create_for_data(arr8,
                                                     cairo.FORMAT_RGB24,
                                                     width, height, stride)

src/g/i/ginga-HEAD/ginga/gtkw/ColorBar.py   ginga(Download)
        stride = cairo.ImageSurface.format_stride_for_width(cairo.FORMAT_RGB24,
                                                            width)
        surface = cairo.ImageSurface.create_for_data(arr8,
                                                     cairo.FORMAT_RGB24,
                                                     width, height, stride)

src/s/h/shoebot-1.0b/shoebot/data/img.py   shoebot(Download)
                    bgra_data = img.tostring('raw', 'BGRA', 0, 1)
                    bgra_array = array.array('B', bgra_data)
                    imagesurface = cairo.ImageSurface.create_for_data(bgra_array, cairo.FORMAT_ARGB32, sw, sh, sw*4)
 
                self._surface_cache[path] = SurfaceRef(imagesurface)
                bgra_data = img.tostring('raw', 'BGRA', 0, 1)
                bgra_array = array.array('B', bgra_data)
                imagesurface = cairo.ImageSurface.create_for_data(bgra_array, cairo.FORMAT_ARGB32, sw, sh, sw*4) 
 
            if width is not None or height is not None:

src/a/d/advene-HEAD/lib/advene/util/slicebuffer.py   advene(Download)
            # Need to initialize
            self._buffer = buf.copy_on_write ()
            self._surface = cairo.ImageSurface.create_for_data (self._buffer, cairo.FORMAT_ARGB32, width, height, 4 * width)
            self._ctx = cairo.Context(self._surface)
            self._ctx.set_source_rgb(0, 0, 0)
 
        # Copy slice into buffer
        surf = cairo.ImageSurface.create_for_data(buf.copy_on_write(), cairo.FORMAT_ARGB32, width, height, 4 * width)
        self._ctx.set_operator(cairo.OPERATOR_SOURCE)
        self._ctx.set_source_surface(surf, dest_x - source_x, 0)

src/s/h/shoebot-HEAD/shoebot/data/img.py   shoebot(Download)
                    bgra_data = img.tostring('raw', 'BGRA', 0, 1)
                    bgra_array = array.array('B', bgra_data)
                    imagesurface = cairo.ImageSurface.create_for_data(bgra_array, cairo.FORMAT_ARGB32, sw, sh, sw*4)
 
                self._surface_cache[path] = SurfaceRef(imagesurface)
                bgra_data = img.tostring('raw', 'BGRA', 0, 1)
                bgra_array = array.array('B', bgra_data)
                imagesurface = cairo.ImageSurface.create_for_data(bgra_array, cairo.FORMAT_ARGB32, sw, sh, sw*4) 
 
            if width is not None or height is not None:

src/n/u/nupic-HEAD/external/linux32/lib/python2.6/site-packages/matplotlib/backends/backend_cairo.py   nupic(Download)
        rows, cols, buf = im.color_conv (BYTE_FORMAT)
        surface = cairo.ImageSurface.create_for_data (
                      buf, cairo.FORMAT_ARGB32, cols, rows, cols*4)
        # function does not pass a 'gc' so use renderer.ctx
        ctx = self.ctx

  1 | 2 | 3 | 4 | 5  Next