Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Bitmap files

Posted on 1998-11-10
1
Medium Priority
?
147 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 300 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

971 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