Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

OWL/OpenGL cut/paste

Posted on 1997-03-07
1
Medium Priority
?
287 Views
Last Modified: 2008-02-07
Using OpenGL, in an OWL environment, how can one paint OpenGL images to the clipboard to allow cutting and pasting?  At the same time, I need to be able to paint to the screen as normal.
Images painted to the clipboard would then be pasted into Powerpoint or Word as bitmaps or some form of picture.

Thanks,
Brian
0
Comment
Question by:brigling
[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 11

Accepted Solution

by:
mikeblas earned 200 total points
ID: 1161987
Windows doesn't offer a OpenGL-specific clipboard format, and OpenGL doesn't provide for image copying directly.  You'll need to grab a bitmap of the window that you're using to display the object and then paste that to the clipboard using CF_DIB or CF_BITMAP.

If you have control over both the program that's providing the image and the programs that will consume it from the clipboard, you could register your own custom format and hook up your own re-rendering mechanism.

.B ekiM
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

721 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