Wand virtual_pixel property – Python
When performing distortion on raster images, the resulting image often includes pixels that are outside original bounding raster. These regions are referred to as vertical pixels, and can be controlled by setting Image.virtual_pixel to any value defined in VIRTUAL_PIXEL_METHOD.
Following are the VIRTUAL_PIXEL_METHOD :
VIRTUAL_PIXEL_METHOD Description ‘undefined standard default VIRTUAL_PIXEL_METHOD. ‘background set virtual pixel solid background. ‘dither’ dither creates dotted edges around the distort edges. ‘edge’ distinct edges ‘mirror’ a mirror pixel is plotted on Virtual pixels and give a mirror effect ‘random’ random pixels from image are plotted. ’tile’ a tile effect is created. ‘transparent’ sets virtual pixels transparent. ‘mask’ set virtual pixels blank and create mask effect. ‘black’ sets virtual pixels of black color. ‘gray’ sets virtual pixels of gray color. ‘white’ sets virtual pixels of white color. ‘horizontal_tile’ set tile effect horizontally only. ‘vertical_tile’ set tile effect vertically only. ‘horizontal_tile_edge’ set tile effect horizontally only with distinct edges. ‘vertical_tile_edge’ set tile effect vertically only with distinct edges. ‘checker_tile’ Create check effect
wand.image.virtual_pexel = 'VIRTUAL_PIXEL_METHOD'
changing VIRTUAL_PIXEL_METHOD to tile