Solved

loading a bitmap in OWL

Posted on 2000-04-28
1
174 Views
Last Modified: 2013-12-26
How do you go about loading a bitmap located on the hard drive, and displaying it on the screen?
0
Comment
Question by:onnix
1 Comment
 
LVL 14

Accepted Solution

by:
AlexVirochovsky earned 15 total points
ID: 2764226
..
#include <owl/dibitmap.h>
...
void YouClass::Paint(TDC& dc, bool, TRect& rect)
{
  TDiBitmap *dib = new TDiBitmap("mybitmap.bmp");
  TMemoryDC memoryDC(dc);  
  memoryDC.SelectObject(*dib);
  dc.BitBlt(rect, memoryDC, TPoint(0,0));
  delete dib;
}

I hope, it helps. Alex

BTW: 15PTS???
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
XSL Grouping 7 42
RSS Feeds--IE 13 178
Advice on what platform to use for a web app for AWS 3 98
replace quotes with UTF-8 character 38 95
Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

813 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

12 Experts available now in Live!

Get 1:1 Help Now