Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(42)  |  Call(42)  |  Derive(0)  |  Import(0)
pygame.image.fromstring(string, size, format, flipped=False): return Surface
create new Surface from a string buffer

src/k/a/kamaelia-HEAD/Sketches/CE/XPlatformClient.py   kamaelia(Download)
                                   back_colour=(0,0,0)):      
#      print "display_pygame_image_string: creating image surface"
      image_surface = pygame.image.fromstring(image_string, resolution, format)
#      print "display_pygame_image_string: creating display"           
      self.pygame_displayHandler(image_surface, screensize, back_colour)

src/k/a/Kamaelia-0.6.0/Kamaelia/UI/Pygame/VideoSurface.py   Kamaelia(Download)
 
            # now render our frame
            image = pygame.image.fromstring(frame['rgb'], frame['size'], "RGB", False)
 
            self.display.blit(image, (0,0))

src/u/l/UlDunAd-HEAD/src/Texture.py   UlDunAd(Download)
        #converts PIL images to pygame surfaces
        if isinstance(texture, Image.Image):
          self.textureSurface = pygame.image.fromstring(self.textureSurface.tostring('raw', 'RGBA', 0, -1), self.textureSurface.size, 'RGBA')
 
        self.pixelSize = self.textureSurface.get_size()

src/f/a/famicam-HEAD/famicam.py   famicam(Download)
    # Create pygame surfaces for bitblitting
    pygameimg = img.tostring()
    with_laughingman = image.fromstring(pygameimg, (WIDTH,HEIGHT), "RGB")
 
    # Detect faces and bitblit the laughingman

src/f/i/FishPi-POCV---Command---Control-HEAD/fishpi/sensor/camera.py   FishPi-POCV---Command---Control(Download)
    def pil_to_pygame(self, pil_image):
        imgstr = pil_image.tostring()
        return pygame.image.fromstring(imgstr, pil_image.size, self.default_colorspace)
 
    def set_capture_mode(self, mode): 

src/p/y/PyGaze-HEAD/pygaze/_eyetracker/eyelinkgraphics.py   PyGaze(Download)
			img.fromstring(bufferv)
			img = img.resize(imgsz)
			img = pygame.image.fromstring(img.tostring(), imgsz, 'RGBX')
			pygame.image.save(img, self.tmp_file)
			# ... and then show the image.

src/p/y/pymt-apps-HEAD/presemt/app/control_bookmark.py   pymt-apps(Download)
    # do a mini
    size = win.width / 10, win.height / 10
    surf = pygame.image.fromstring(data, win.size, 'RGB')
    surf = pygame.transform.scale(surf, size)
    data = pygame.image.tostring(surf, 'RGB')

src/t/h/they_stole_two_million-HEAD/pyknic/__init__.py   they_stole_two_million(Download)
            s_dec = gzipper.read()
            gzipper.close()
            icon = pygame.image.fromstring(s_dec, (32, 32), 'RGBA')
            if __debug__: print u"loading default icon done!"
        pygame.display.set_icon(icon)

src/h/i/hitt-0.1.22/hitt/display.py   hitt(Download)
    def _set_icon(self, value):
        self._icon = value
        if value is None:
            pygame.display.set_icon(pygame.image.fromstring('0', (1, 1), 'P'))
        else:

src/q/g/QGL-9/qgl/render.py   QGL(Download)
            fo = f.read("texture.rgba")
            size  = eval(f.read("size.repr"))
            image = pygame.image.fromstring(fo, size, "RGBA")
            texture = GLTexture(image, True, True)
            texture.coords = eval(f.read("coords.repr"))

Previous  1 | 2 | 3 | 4  Next