I'm drawing images on panel controls. Changing zoom factor changes the size of panel control (which should stretch the image accordingly). With zoom factors greater then 1 (ie, 2,4,8) a small part of panel begins to show (testing shows that it is the background color of the panel) and grows along with the zoom factor.
- Panel control borders are set to none.
- Panel size is always the power of 2 (ie 64,256...).
- Original image size is always the power of 2 (ie 64,256...).
- Destination rectangle of the draw method is set to panel width and height.
Any thoughts?