?
Solved

loading a bitmap in OWL

Posted on 2000-04-28
1
Medium Priority
?
182 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
[X]
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
1 Comment
 
LVL 14

Accepted Solution

by:
AlexVirochovsky earned 45 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

WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

Question has a verified solution.

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

I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
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…
Suggested Courses

801 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