Solved

Changing Resolution

Posted on 1998-07-03
5
236 Views
Last Modified: 2010-04-15
Is there any way of changing BMP graphics file resolution using turboc.I mean say from 320x200 to 640x480 and so on.
0
Comment
Question by:SHAHZAD
5 Comments
 
LVL 3

Expert Comment

by:braveheart
ID: 1251533
This is not really a C question. Ask in one of the PC or graphics areas.
0
 

Author Comment

by:SHAHZAD
ID: 1251534
Thanks for telling me the right place to look for.
0
 

Accepted Solution

by:
Morten from Eliten earned 20 total points
ID: 1251535
If you want to change the size of a bitmap, you will have to open the bitmap file, and manipulate the contents of it.
The Bitmap file begins with a header, which tells how heigh and wide the bitmap is, what color depth it is, etc. Following the header, there is the actual data of the bitmap file.
To increase the size of the bitmap, you will first have to change the header to set the correct size, and then strech the content of the bitmap file.

Rounding it up, this means that you'll have to do the streching for yourself. Some of the guys in the graphics areas can properly help you decoding the bitmap file.



0
 

Author Comment

by:SHAHZAD
ID: 1251536
Your answer seems to be correct to me.I'll try it.Thanks

0
 

Expert Comment

by:kashif063098
ID: 1251537
YOUR FULL IS SHAHZAD SHEIKH ????

0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
how to communicate between two pc's through vb.net code ? 4 143
negation in C function 14 132
C hashtable library 3 71
Problem to ASCII 1 148
Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

705 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

16 Experts available now in Live!

Get 1:1 Help Now