Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Draw Transparency To Memory

Posted on 2001-08-05
5
Medium Priority
?
224 Views
Last Modified: 2013-12-26
I use Draw to Bitmap in the RAM,
for printing or saving a bmp file.

The code is the same code as used for rendering to the viewport.

But although I have no problems with transparency in the
viewport, The transparent triangles look opaque in the printer's output or in the BMP file created.

- Is it because the blending is not handled corectly for
memory rendering ?
- How can I solve this problem ?
0
Comment
Question by:Yossi
  • 3
5 Comments
 
LVL 1

Expert Comment

by:jacobkristensen
ID: 6353824
bmp's don't support transparency and I quess a printer doesn't either.
You could of cource copy the pixels from your screen, although it is not a very elegant solution...
0
 

Author Comment

by:Yossi
ID: 6403585
Copy screen pixels does not feet my code requirments, since it will copy unwanted graphics such as dialogs or highlited lines with the picture.
0
 
LVL 4

Accepted Solution

by:
ct.smith earned 300 total points
ID: 6634451
I'd try a draw to an offscreen buffer and do a pixel copy from there.  The pixel copy should be reading off the buffer without using any alpha channels.  How you would do this is entirely dependant on the API you use.
0
 

Author Comment

by:Yossi
ID: 6640367
I figured out that it is a driver dependent problem whether alpha is used correctly for memory draw.
Some graphic cards supply driver which does it right, while other have a bug.

0
 

Author Comment

by:Yossi
ID: 6640371
It seems like a good bypass to the driver problem.
I won't test it since I found that some graphic cards have drivers which do it right.

Many Thanks.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Artificial Intelligence comes in many forms, and for game developers, Path-Finding is an important ability for making an NPC (Non-Playable Character) maneuver through terrain.  A* is a particularly easy way to approach it.  I’ll start with the algor…
As game developers, we quickly learn that Artificial Intelligence (AI) doesn’t need to be so tough.  To reference Space Ghost: “Moltar, I have a giant brain that is able to reduce any complex machine into a simple yes or no answer. (http://www.youtu…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

782 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