Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
19th September 2012, 21:55 | #2 | Link |
Registered User
Join Date: Apr 2002
Location: Germany
Posts: 5,389
|
To the outside (making framesize bigger), or to the inside?
Repeating to the outside is very easy. It's also called "padding". Code:
PointResize( width()+8, height()+8, -4,-4, width()+8, height()+8 ) # padding 4 pixels on every side Reflecting to the inside is more tricky, and raises some "how do you want it to be" questions. It will be either some fiddling with crop() and StackHorizontal/Vertical, and/or involve some sort of masked-merging.
__________________
- We´re at the beginning of the end of mankind´s childhood - My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!) |
21st October 2012, 11:15 | #4 | Link |
Registered User
Join Date: May 2012
Posts: 28
|
Thanks a lot, Didée and mandarinka. Yeah, I was referring to making the frame bigger. Using PointResize, is it possible to choose which side I want to work with or is padding every one of them and cropping thereafter inevitable?
|
21st October 2012, 11:35 | #5 | Link |
Registered User
Join Date: Apr 2002
Location: Germany
Posts: 5,389
|
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 ) } yourclip.Padding(0,0,8,0)
__________________
- We´re at the beginning of the end of mankind´s childhood - My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!) |
11th March 2018, 20:23 | #7 | Link |
Registered User
Join Date: May 2016
Posts: 235
|
Thank you for the script Didée, I know this is an old post but it helped me with some problems I had.
__________________
Automatic Colorization |
Thread Tools | Search this Thread |
Display Modes | |
|
|