register-collecting-blit in Global Graphics
Registers a blit to occur when garbage collection starts or ends.
(register-collecting-blit-> voidcanvasxywhonoffon-xon-yoff-xoff-y)
canvas:canvas%object
x: real number
y: real number
w: non-negative real number
h: non-negative real number
on:bitmap%object
off:bitmap%object
on-x=0: real number
on-y=0: real number
off-x=0: real number
off-y=0: real numberWhen garbage collection starts,
(send (sendis called. When garbage collection ends,canvasget-dc)draw-bitmap-sectiononon-xon-yxywh)(send (sendis called. Ifcanvasget-dc)draw-bitmap-sectionoffoff-xoff-yxywh)canvas's device context has a scale, the scale may or may not be temporarily disabled during the bitmap drawing.The
canvasis registered weakly, so it will be automatically unregistered if the canvas becomes invisible and inaccessible. Multiple registrations can be installed for the same canvas.See also
unregister-collecting-blit.