Custom painting is completely controlled by the user. The user handles the custom painting through the paint callback. You can set this callback using the function L_DispContainerSetPaintCallBack. To get the callback, use the function L_DispContainerGetPaintCallBack.
Using the Medical Image Viewer Control
Creating a Bitmap Region Inside the Image Viewer
For more information, refer to:
Summary of All Supported Image File Formats