jiayouxjh / grafx2

Automatically exported from code.google.com/p/grafx2
0 stars 0 forks source link

Lua: setpicturesize() with offsets and clipping #393

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
From issue 377:
"Note that setpicturesize() now copies the pixels from the original backup 
(before the script), and no matter how many times you call setpicturesize() 
during a script, the whole script will count as one Undo/Redo step."

I'm working on some image-rotation scripts and discovered that there's a need 
for multiple changes to the image-size during the process...something that is 
not possible the way it works now. Would it be possible to add some kind of 
"FinalizingChanges" instruction that makes a new (script)backup of the current 
screen before it continues? (This could also work in conjunction with my idea 
for a suggested "UpdateScreen" while a script is running).

Also, could setpicturesize() be equipped with additional/optional offset 
parameters to allow clipping of the current image?

Original issue reported on code.google.com by annas...@hotmail.com on 21 Oct 2010 at 9:50

GoogleCodeExporter commented 9 years ago
Hm, I probably shouldn't have added this issue as "Defect"

Original comment by annas...@hotmail.com on 21 Oct 2010 at 9:51

GoogleCodeExporter commented 9 years ago
finalizepicture() is done, as of r1664.

Still todo: allow optional offsets in setpicturesize(). Needs to accept 
positive and negative offsets, and handle clipping.

Original comment by yrizoud on 18 Jan 2011 at 9:41

GoogleCodeExporter commented 9 years ago

Original comment by pulkoma...@gmail.com on 20 Jan 2011 at 9:02

GoogleCodeExporter commented 9 years ago

Original comment by pulkoma...@gmail.com on 10 Apr 2011 at 8:43

GoogleCodeExporter commented 9 years ago
Arbitering issues that make it to v2.4

Original comment by yrizoud on 8 Mar 2012 at 7:18