Lines Matching refs:transp
45 local function getpixel( png, x, y, transp )
49 if c == transp then
68 local function rlerow( png, y, limit, transp )
87 local _, a = getpixel( png, x, y, transp )
92 local c, aa = getpixel( png, x, y, transp )
107 local c = getpixel( png, xsave + i, y, transp )
124 local function rleimage( png, limit, transp )
132 local row, u = rlerow( png, y, limit, transp )
181 local name, limit, transp
185 …transp = rgbto16( tonumber( args[ i + 1 ] ), tonumber( args[ i + 2 ] ), tonumber( args[ i + 3 ] ) )
188 transp = args[ i ]
200 if transp == '--tl' then
201 transp = rgbto16( image.split( png:getPixel( 0, 0 ) ) )
202 elseif transp == '--bl' then
203 transp = rgbto16( image.split( png:getPixel( 0, png:getHeight() - 1 ) ) )
204 elseif transp == '--tr' then
205 transp = rgbto16( image.split( png:getPixel( png:getWidth() - 1, 0 ) ) )
206 elseif transp == '--br' then
207 transp = rgbto16( image.split( png:getPixel( png:getWidth() - 1, png:getHeight() - 1 ) ) )
210 local rle = rleimage( png, limit, transp )