resize_subcontext


Description:

public void resize_subcontext (int x1, int y1, int x2, int y2)

Sub-contexts can be resized, but not their parents (i.

e. anything returned by @new or set up by set_mode cannot be resized – because this could lead to irrecoverable "loss" of drawing memory.

The coordinate arguments (x1 through y2) are interpreted relative to the parent context's limits.

Parameters:

this

the context

x1

the new left bounds

y1

the new top bounds

x2

the new right bounds

y2

the new bottom bounds