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

All Samples(130)  |  Call(130)  |  Derive(0)  |  Import(0)
Create a new image

        def new(mode, size, color=0):
    "Create a new image"

    if color is None:
        # don't initialize
        return Image()._new(core.new(mode, size))

    if isStringType(color):
        # css3-style specifier

        import ImageColor
        color = ImageColor.getcolor(color, mode)

    return Image()._new(core.fill(mode, size, color))
        


src/m/a/MapProxy-1.6.0/mapproxy/image/merge.py   MapProxy(Download)
 
    if transparent:
        img = Image.new('RGBA', size, bgcolor+(0,))
    else:
        img = Image.new('RGB', size, bgcolor)

src/m/a/mapproxy-HEAD/mapproxy/image/merge.py   mapproxy(Download)
 
    if transparent:
        img = Image.new('RGBA', size, bgcolor+(0,))
    else:
        img = Image.new('RGB', size, bgcolor)

src/m/a/MapProxy-1.6.0/mapproxy/image/opts.py   MapProxy(Download)
            bgcolor = bgcolor[0]
 
    return Image.new(mode, size, bgcolor)
 
 

src/m/a/MapProxy-1.6.0/mapproxy/image/mask.py   MapProxy(Download)
def image_mask_from_geom(img, bbox, polygons):
    transf = make_lin_transf(bbox, (0, 0) + img.size)
 
    mask = Image.new('L', img.size, 255)
    draw = ImageDraw.Draw(mask)

src/m/a/mapproxy-HEAD/mapproxy/image/opts.py   mapproxy(Download)
            bgcolor = bgcolor[0]
 
    return Image.new(mode, size, bgcolor)
 
 

src/m/a/mapproxy-HEAD/mapproxy/image/mask.py   mapproxy(Download)
def image_mask_from_geom(img, bbox, polygons):
    transf = make_lin_transf(bbox, (0, 0) + img.size)
 
    mask = Image.new('L', img.size, 255)
    draw = ImageDraw.Draw(mask)

src/m/a/MapProxy-1.6.0/mapproxy/image/message.py   MapProxy(Download)
    def new_image(self, size):
        return Image.new('RGBA', size)
 
    def draw(self, img=None, size=None, in_place=True):
        """

src/m/a/mapproxy-HEAD/mapproxy/image/message.py   mapproxy(Download)
    def new_image(self, size):
        return Image.new('RGBA', size)
 
    def draw(self, img=None, size=None, in_place=True):
        """

src/m/a/MapProxy-1.6.0/mapproxy/test/unit/test_concat_legends.py   MapProxy(Download)
    def test_concatenation(self):
        legends = []
        img_1 = Image.new(mode='RGBA', size=(30,10), color="red")
        img_2 = Image.new(mode='RGBA', size=(10,10), color="black")
        img_3 = Image.new(mode='RGBA', size=(50,80), color="blue")

src/m/a/mapproxy-HEAD/mapproxy/test/unit/test_concat_legends.py   mapproxy(Download)
    def test_concatenation(self):
        legends = []
        img_1 = Image.new(mode='RGBA', size=(30,10), color="red")
        img_2 = Image.new(mode='RGBA', size=(10,10), color="black")
        img_3 = Image.new(mode='RGBA', size=(50,80), color="blue")

  1 | 2 | 3  Next