|
Here is one idea: replace Transparent by White, just to see if that gives decent quality. I never trust Windows and transparency, it holds too many surprises.
|
|
|
|
|
Even if it displayed better, I need the background to be transparent.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
IMO making a little step sidewards is often useful in a debug session, even when it violates functional specs.
|
|
|
|
|
At this point, I'm tempted to just create the graphics with photoshop and call it a day.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Well, it does in fact ONLY happen when I use g.Clear(Color.Transparent) . That's a real pisser because now I have to do a screen cap of the gradient background we use in the Silverlight app so I have a non-transparent image to render the text onto. What a pain in the ass... and all because a) Silverlight's element rotation f*cks up your layout, and b) it doesn't allow you to build images on the fly.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
From everything I read about it over the years, I gathered transparency on Windows is a PITA. I try and stay away from it as much as possible.
Thanks for reporting.
|
|
|
|
|
I've observed that it works fine in Winforms, but it sucks in asp.net
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
you may want to repost in ASP.NET forum then; and probably add a sample of each.
Did you notice anything different in the properties of both Graphics objects? From what you told so far, it isn't clear to me yet whether this indicates a bug or something you overlooked.
|
|
|
|
|
Complaints are many regarding he quality of text rendered on a transparent bitmap. The one thing I haven't tried yet is creating a transparent bitmap disk file, loading that in the asp.net page code behind, and rendering text on it. I can tell you that creating the (transparent) bitmap in code and rendering text onto it creates a crappy looking image. IMHO, it's a bug.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
In the interest of being able to say that I "tried everything", I created a png file that was nothing but a transparent background, as well as one that was nothing but a white background. Rendering text on the transparent file looked just like it did as if I had created the whole thing in memory - in other words, crap. The white png file resulted in perfectly anti-aliased text.
I just don't understand...
EDIT ===========
I also created a new white image that had the transparent color set to white. This generated a better image, but not NEARLY as good as having some sort of color on the bitmap.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
modified on Saturday, May 1, 2010 3:22 PM
|
|
|
|
|
|
Luc Pattyn wrote: there are two ways to try and achieve transparency; one is by using the alpha channel, that should allow a blend, so anti-aliased stuff can result in semi-transparent pixels; the other is by setting apart a special color which will be treated as transparent later on; blending here fails as the result is different from the one (or few) special colors.
I tried it both ways - neither result was acceptable, but the transparent color version was the best of the two.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Hi
I have a picture object in crystal report
I want to set picture that user select from 'Browse' button to it in runtime
how can i do it ?
|
|
|
|
|
Hi
I am using C# and directshow.net for play video . i have problem about sound , i want use pitch control for audio but i don't know how to make.
( increase or decrease audio output tone ) pitch audio filter
please heplme
-
http://www.codeproject.com/KB/directx/directshownet.aspx
|
|
|
|
|
Hello everyone.
I'm developing an aplication and in one part of the code i want to change the state of the Visible label property.
EX: By default
label.Visible = false and then, somewhere in the code i make
label.Visible = true .
When i run the aplication everything goes right but, in debug mode, after changing the property state from false to true if i check the value in the immediate window it still appear false.
What's the problem.
Excuse my inglish but it is not my native language.
regards Jonatan. Thanks.
|
|
|
|
|
Weird - I tried to recreate this problem in VS2010 but could not do so.
Which version of VS (and framework) are you using?
|
|
|
|
|
Hello. Thanks for the reply.
I'm using VS2005 and the framework is 2.0.
regards jonatan
|
|
|
|
|
jonatan_556 wrote: What's the problem.
The property has a setter and a getter. The "getter" only shows the current value.
Now, when you change the value in the debugger, the application that is being debugged is halted - you can see how the application even pauses drawing the screen if it has hit a breakpoint.
Once it continues, then it will send a message to the label, saying it needs to change visibility. The application that's being debugged will do so when it's processing this message. That takes time - in the meanwhile you're looking at an old value in the debugger.
I are Troll
|
|
|
|
|
hi
I created a global class that contains this code:
public class ClassS
{
#region variable et propriété
private int codemessage;
public int Codemessage
{
get { return codemessage; }
set { codemessage = value; }
}
#endregion
I would like to create a subclass that inherits this property, stating in this class values of this property, the code message can have 13 values of 200 to 212, and should be declared in this class,
for example:
200=immatricule
201=kilometrage
...............
|
|
|
|
|
membre123 wrote: I would like to create a subclass that inherits this property
Ok, so derive from it. The property is public so it will be available.
membre123 wrote: message can have 13 values of 200 to 212
Then you need to use a collection
And "class c#" as a subject title in the C# forum is pretty much useless and uninformative. Try something more descriptive of your question or issue next time.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
yes you are right, and thank you for the comment
but in the child class property is not displayed and here is the code used:
namespace CarteGrise
{
public class CarteGrise :ClassS
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ClasseSup
#region variable et propriete
..................
#endregion
public List<ClassS> liste = new List<ClassS>();
|
|
|
|
|
If I understand this, then CarteGrise does not need to derive from ClassS at all. Also, if ClassS only contains one property then a class is overkill and unnecessary. A simple collection of stings would be sufficient.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark Nischalke wrote: collection of stings
Ouch!
|
|
|
|
|
You may want to make the property virtual and override it in the child class.
|
|
|
|
|