Solved

Bitmap files

Posted on 1998-11-10
1
143 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

756 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