View Single Post
Old 21st September 2015, 06:45   #8  |  Link
raffriff42
Retried Guesser
 
raffriff42's Avatar
 
Join Date: Jun 2012
Posts: 1,373
Quote:
Originally Posted by Reel.Deel View Post
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 View Post
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 )
}
raffriff42 is offline   Reply With Quote