21st September 2015, 06:45
|
#8
| Link
|
Retried Guesser
Join Date: Jun 2012
Posts: 1,373
|
Quote:
Originally Posted by Reel.Deel
Neat script, the only downside is I want to pad (duplicate edge pixels) not add borders.
|
OK, I have one...
Quote:
Originally Posted by Didée
Code:
function Padding(clip c, int left, int top, int right, int bottom)
{
w = c.width()
h = c.height()
c.pointresize( w+left+right, h+top+bottom, -left, -top, w+left+right, h+top+bottom )
}
|
|
|
|