Guest User

Untitled

a guest
Oct 16th, 2018
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. function Spline36ResizeMod(clip c, int target_width, int target_height, float "src_left", float "src_top", float "src_width", float "src_height"){
  2. src_left = Default(src_left,0)
  3. src_top = Default(src_top,0)
  4. src_width = Default(src_width,0)
  5. src_height = Default(src_height,0)
  6. src_width = Max(src_width, Width(c) - src_left - Sign(src_width)*src_width) # Convert to equivalent positive src_width when src_width <= 0
  7. MergeChroma(Spline36Resize(c,target_width,target_height,src_left,src_top,src_width,src_height),\
  8. Spline36Resize(c,target_width,target_height,-0.5*((src_width/target_width)-1)+src_left,src_top,src_width,src_height) )
  9. }
Add Comment
Please, Sign In to add comment