Solved

Bitmap files

Posted on 1998-11-10
1
142 Views
Last Modified: 2011-09-20
I have written a function to read the data contained in 24bit bmp files, using visual basic 5.0 Professional. However when I use the RGB function in conjunction with PSet function, to display the colour to the screen, the colour displayed does not match that of the actual image.

(1) How do I get the two colors to match ?

(2) When I display the image it appears distorted, ie shifted diagonally to the right. How do I scale the points so that the image does not appear distorted ?

Thanks
 
0
Comment
Question by:shu95rc
1 Comment
 
LVL 12

Accepted Solution

by:
mark2150 earned 100 total points
ID: 1444072
1) Colors are displayed using palettes. You may have the right colors, just the wrong palette.

2) If you're getting diagonal tearing your loop index is off by +-1.

M

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question