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/p/y/pymt-apps-HEAD/presemt/app/presemt.py   pymt-apps(Download)
            glReadBuffer(GL_FRONT)
            data = glReadPixels(0, 0, win.width, win.height, GL_RGB, GL_UNSIGNED_BYTE)
            surface = pygame.image.fromstring(str(buffer(data)), win.size, 'RGB', True)
            filename = 'presemt.screenshot.tmp.jpg'
            pygame.image.save(surface, filename)

src/p/y/PyGaze-HEAD/additional_libraries/libwebcam.py   PyGaze(Download)
			# if the disptype is pygame, we need to convert the PIL Image to a PyGame image
			else:
				return pygame.image.fromstring(self.img.tostring(), (width,height), 'RGB', False) # (string, size, format, flipped)
 
		# other platforms

src/k/a/kamaelia-HEAD/Code/Python/Kamaelia/Kamaelia/UI/Pygame/VideoSurface.py   kamaelia(Download)
 
            # now render our frame
            image = pygame.image.fromstring(frame['rgb'], frame['size'], "RGB", False)
 
            if self.resize:

src/k/a/kamaelia-HEAD/Sketches/AB/backup/AB-Whiteboard-V1/Whiteboard/Whiteboard.py   kamaelia(Download)
                data = self.recv("inbox2")
                try: # Prevent crashing with malformed received images
                    image = pygame.image.fromstring(data,(190,140),"RGB")
                    self.send(image, "outbox2")
                except Exception, e:

src/k/a/kamaelia-HEAD/Code/Python/Apps/Whiteboard/App/Whiteboard.py   kamaelia(Download)
                # Convert string to Pygame image using a particular size
                try: # Prevent crashing with malformed received images
                    image = pygame.image.fromstring(data,(self.width,self.height),"RGB")
                    self.send(image, "outbox")
                except Exception, e:

src/k/a/kamaelia-HEAD/Sketches/MH/pixformatConversion/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/z/a/zanthor-1.2.3/zanthor/data/gfx/tileedit.py   zanthor(Download)
                assert mode in ["RGB", "RGBA"]
 
                self.tiles = pygame.image.fromstring(data, size, mode)
 
            else:

src/k/a/kamaelia-HEAD/Sketches/AB/backup/Whiteboard/Whiteboard.py   kamaelia(Download)
                data = self.recv("inbox2")
                try: # Prevent crashing with malformed received images
                    image = pygame.image.fromstring(data,(190,140),"RGB")
                    self.send(image, "outbox2")
                except Exception, e:

src/p/a/ParticlePanda-HEAD/main.py   ParticlePanda(Download)
        data = str(buffer(data))
 
        image = pygame.image.fromstring(data, (canvas_size[0], int(0.9*canvas_size[1])), 'RGBA', True)
        pygame.image.save(image, thumbnail_filename)
 

src/k/a/kamaelia-HEAD/Sketches/CE/Display6nokia.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)

Previous  1 | 2 | 3 | 4  Next