Solved

loading a bitmap in OWL

Posted on 2000-04-28
1
180 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 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to count occurrences of each item in an array.

738 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