Available in the LEADTOOLS Imaging toolkit. |
EnablePaint example for Visual Basic
' disable the paint
LEAD1.EnablePaint = False
' do whatever changes you want. The control will not repaint
LEAD1.Size LEAD1.BitmapWidth * 2, LEAD1.BitmapHeight * 2, RESIZE_BICUBIC
' re-enable the paint
LEAD1.EnablePaint = True
' call ForceRepaint because the control will not automatically repaint
LEAD1.ForceRepaint