Solved

Draw Transparency To Memory

Posted on 2001-08-05
5
200 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 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

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 …
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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

816 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now