Article ID: 173213
Article Last Modified on 2/16/2005
APPLIES TO
- Microsoft Visual Basic 5.0 Learning Edition
- Microsoft Visual Basic 5.0 Professional Edition
- Microsoft Visual Basic 5.0 Enterprise Edition
This article was previously published under Q173213
SYMPTOMS
When you display a JPG file in a PictureBox or Image control, the bottom row of pixels is a different color. It looks like a line has been drawn across the bottom of the image.
RESOLUTION
This problem only effects JPG images. One solution is to convert the image to a different format. For example, you can use the Wang Imaging software that comes with Windows NT 4.0 or the Microsoft Photo Editor available with Microsoft Office 97 to convert the file format.
Alternatively, you can use a control other than the PictureBox or Image to display the picture. The OLE Control does not exhibit this problem.
STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in Visual Basic 6.0.
MORE INFORMATION
Steps to Reproduce Behavior
- Create a new "Standard EXE" project in Visual Basic 5.0.
- Place a PictureBox control and an Image control on Form1.
- Set the picture property of both controls to a file in JPG format.
- Increase the size of both controls so that they are larger than the image.
- Set the Stretch property of the Image control to true. (This is not necessary to reproduce the problem but it does make it easier to see.)
- Run the project.
- Notice the line that appears across the bottom of both images.
Additional query words: jpeg
Keywords: kbbug kbfix kbvbp600fix kbctrl KB173213