Solved

Bitmap files

Posted on 1998-11-10
1
139 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
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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 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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now