473,654 Members | 3,107 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

newb needs help bmp

Built a basic word game for the kids,
using if, else , string input, etc, its kinda cool
I would like to put in some bmp or jpg to color it up a bit.
The books i have do not show how to display a picture,
Please let me know how to simply put in picture files into my program
TIA

Jul 22 '05 #1
5 1217
"Mitch" <ba*******@yaho o.com> writes:
The books i have do not show how to display a picture,

Maybe because our books are too stupid to know what operating system
and compiler you're using.

Jul 22 '05 #2

"Tim Love" <tp*@eng.cam.ac .uk> wrote in message
news:cr******** **@gemini.csx.c am.ac.uk...
"Mitch" <ba*******@yaho o.com> writes:
The books i have do not show how to display a picture,

Maybe because our books are too stupid to know what operating system
and compiler you're using.


Stupid books! :-)

Seriously...you (Mitch) need to ask this in a newsgroup devoted to the
operating system and/or compiler that you're using. Bitmaps are not part of
standard C++ (which is what is discussed here), but are instead
implementations by third parties or by compiler vendors for specific
platforms (operating systems), such as Visual C++ under the Windows
operating system.

-H
Jul 22 '05 #3
Ok bud

"Tim Love" <tp*@eng.cam.ac .uk> wrote in message
news:cr******** **@gemini.csx.c am.ac.uk...
"Mitch" <ba*******@yaho o.com> writes:
The books i have do not show how to display a picture,

Maybe because our books are too stupid to know what operating system
and compiler you're using.

Jul 22 '05 #4
Mitch wrote:
Built a basic word game for the kids,
using if, else , string input, etc, its kinda cool
I would like to put in some bmp or jpg to color it up a bit.
The books i have do not show how to display a picture,
Please let me know how to simply put in picture files into my program
TIA


Displaying graphics of any kind is going to be extremely
dependent on what platform you are using, and would be extremely
off-topic here. Post this question to a newsgroup related to the
platform you are writing on.

A portable interface such as that provided by SDL can help make
this easy; SDL also includes facilities for loading and
displaying BMP graphics; SDLimage also supports JPG and others.

However, you should know that it is unlikely that you can simply
mix in some calls to your existing code, if you are currently
using standard streams (such as cout) to handle your
input/output: these streams are unlikely to result in things
being displayed in the same place as the graphics: you'll need to
use an entirely different mechanism, possibly drawing the text
directly to the graphics display.

HTH.
Jul 22 '05 #5

"Micah Cowan" <mi***@cowan.na me> wrote in message
news:41******** **************@ news.calweb.com ...
Mitch wrote:
Built a basic word game for the kids,
using if, else , string input, etc, its kinda cool
I would like to put in some bmp or jpg to color it up a bit.
The books i have do not show how to display a picture,
Please let me know how to simply put in picture files into my program
TIA


Displaying graphics of any kind is going to be extremely
dependent on what platform you are using, and would be extremely
off-topic here. Post this question to a newsgroup related to the
platform you are writing on.

A portable interface such as that provided by SDL can help make
this easy; SDL also includes facilities for loading and
displaying BMP graphics; SDLimage also supports JPG and others.

However, you should know that it is unlikely that you can simply
mix in some calls to your existing code, if you are currently
using standard streams (such as cout) to handle your
input/output: these streams are unlikely to result in things
being displayed in the same place as the graphics: you'll need to
use an entirely different mechanism, possibly drawing the text
directly to the graphics display.

HTH.


Thank you for the info
Jul 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1718
by: Alex | last post by:
Basically I want to parse some C++ source code and replace some constants. I've mangaed to read in the file and replace some of the things that need replacing. but I'm having a hard time matching a particular pattern. For example: cout << "This is a \"String\"" << "With some text"; printf("This is another possible \"string\"");
1
1308
by: Bond | last post by:
Hi! There is a section on my webpage that needs some formatting done. Currently I'm displaying some information at the top of the page using <pre class="....">...</pre> I have this working to the fonts that I want displayed. My problem is that I'm loading a piece of data (the body of the document) from my database which is a long string of html. I load this information into the document and of course it doesn't follow the same fonts as...
20
2026
by: Chad Everett | last post by:
Hi all, I am new to the group. Trying to learn Python programming on my own. I am working through Michael Dawson's Book Python Programming for the absolute beginner. I am tring to write a program that is a number guessing game. I want to be able to give the user 5 tries to guess the number before the program ends. I get the result that I want when the user misses after the 5th try. But it does not go down to my closing statement...
2
492
by: ASiF | last post by:
Hi i am completely novice at programming, would appreciate some help. The program needs to be able to take a set of up to a 100 numbers (between 1 to 9) "inputted" at the prompt and then assign those number indvidually to seperate variable and then pass on to another function which will perform other operations on the numbers. char line
24
2349
by: Apotheosis | last post by:
The problem professor gave us is: Write a program which reads two integer values. If the first is less than the second, print the message "up". If the second is less than the first, print the message "down" If the numbers are equal, print the message "equal" If there is an error reading the data, print a message containing the word "Error" and perform exit( 0 ); And this is what I wrote:
11
1986
by: The_Kingpin | last post by:
Hi all, I'm new to C programming and looking for some help. I have a homework project to do and could use every tips, advises, code sample and references I can get. Here's what I need to do. I have a file named books.txt that contains all the informations on the books. Each book is a struc containing 6 fields written on separated line in the
24
1729
by: Chad Everett | last post by:
Hey guys, I am back. Trying to expand on a program that was given in the book I am studying. No I am not a high school or college student. Doing this on my own. and having way to much trouble I am trying to add a hint section to a word jumble program.
12
2047
by: Jose M Hernandez | last post by:
Does anybody know of techniques (or websites) where a graph is generated based on data of an array? Any advice on graphs and ASP is greatly appreciated...
14
1494
by: manstey | last post by:
Hi, Is there a clever way to see if two strings of the same length vary by only one character, and what the character is in both strings. E.g. str1=yaqtil str2=yaqtel they differ at str1 and the difference is ('i','e') But if there was str1=yiqtol and str2=yaqtel, I am not interested.
3
1291
by: manstey | last post by:
Hi, I have an xml file of about 140Mb like this: <book> <record> .... <wordpartWTS>1</wordpartWTS> </record> <record>
0
8815
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8707
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8482
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7306
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6161
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5622
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4149
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2714
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1593
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.