Solved

Changing Resolution

Posted on 1998-07-03
5
259 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

770 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