Solved

Draw Transparency To Memory

Posted on 2001-08-05
5
205 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
[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
  • 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 100 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

Industry Leaders: 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

Suggested Solutions

Title # Comments Views Activity
Python - how do I - array of IPAddresses? 3 379
Sudoku - eraseable white board 2 298
3D Surface or Implicit Fairing Visual Studio 4 127
factorial example challenge 10 125
What is RenderMan: RenderMan is a not any particular piece of software. RenderMan is an industry standard, defining set of rules that any rendering software should use, to be RenderMan-compliant. Pixar's RenderMan is a flagship implementation of …
Recently, in one of the tech-blogs I usually read, I saw a post about the best-selling video games through history. The first place in the list is for the classic, extremely addictive Tetris. Well, a long time ago, in a galaxy far far away, I was…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

735 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