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
Solved

Changing Resolution

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

Suggested Solutions

Title # Comments Views Activity
memory mapped I/O query 6 147
why debugging a macro i s difficult 10 38
gdb doesn't stop on breakpoint 2 95
nested if statement in excel help 4 37
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand recursion 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.

860 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