15,901,122 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Mineodo68 (Top 22 by date)
Mineodo68
9-Sep-20 3:33am
View
Alright so i just found something :
"The WinForms implementation of Form only permits a solid colour to be used as the transparency key. It's not possible to have varying levels of transparency."
So maybe it's not possible on windows Forms. But thanks for you help Gerry !
Mineodo68
9-Sep-20 3:15am
View
So i tried to do what you just wrote (and thanks for your help).
The fact is that it works when it's on my windows form. But when I save it as a PNG, it simply doesn't works anymore...
Here is what i have : https://image.noelshack.com/fichiers/2020/37/3/1599636187-transparent2.png
As you can see, there's been a transparent line on the middle (represented on DarkGray), but all around it, there's some black/blue colors. I think that the problem comes when i save the image, maybe the gradient transparent brush is not supported... I really don't know
Mineodo68
8-Sep-20 2:57am
View
I already did something like that, but it only works with a color without gradient.
Thanks for your help, maybe someone will find something.
Mineodo68
7-Sep-20 3:06am
View
I just uploaded a picture to illustrate.
Mineodo68
7-Sep-20 3:00am
View
Yeah, you got that. A part of my image (drawn without gradient brush) is transparent. But all the part with the gradient brush isn't transparent...
Mineodo68
4-Sep-20 10:36am
View
Hello,
Sorry, i forgot to change this value (that was for my test). It's without an alpha value.
Mineodo68
28-May-20 4:03am
View
Hello,
Sorry for the late answer.
Thank you very much ;)
Mineodo68
28-May-20 3:29am
View
Hello and thanks for your help.
The thing that I will have to do is to see if, for example, the n1 car wheel size is 5 inch bigger that ne n2 wheel size.
I suppose I can do some modifications on the code like :
result = (this.WheelSize == otherCar.WheelSize + 5)
Could it works ?
Thank you very much, I appreciate it
Mineodo68
7-May-20 6:20am
View
Yeah, i will maybe try this.
Thank you
Mineodo68
7-May-20 6:20am
View
I will check that, thanks ;)
Mineodo68
7-May-20 6:15am
View
Okay, i will check this later.
Maybe i will come back to ask another question.
Thanks for the help ;)
Mineodo68
7-May-20 5:41am
View
But if i wan't to hold different type of values (brush, font, int, string), how can i put that on an array ? With object[] ?
Mineodo68
7-May-20 5:19am
View
But how can i do that if i want to have a look very clear on my values ?
Because here i tried to fill this array with value and caracteristics and after that, to write a method that draw something with each row of my array
Mineodo68
7-May-20 5:09am
View
Hello,
In this six dimensions (or 5 if i don't use i) array, i want to store all caracteristics about a form and a text that i will draw later.
So it means a x position (here dist), y position (here alt), a name, a font type, a color (brush).
I added "i" to try to fill a row with it, but it's maybe unecessary.
I want to use an array because i will "parse" this array on another method.
I hope it's clear, i'm not english so i don't have all the grammatical expressions
Mineodo68
7-May-20 5:02am
View
You're true, i tried to reduce it to 5 dimension to try this solution but it doesn't work anyway
Mineodo68
7-May-20 4:59am
View
Hello,
Thanks for your comment, i tried it but i've got 3 errors, cannot implicitly convert string to int, font to int and brush to int.
Do you have a solution ?
Mineodo68
12-Mar-20 9:14am
View
It works, thanks a lot !
Mineodo68
28-Feb-20 10:08am
View
It works ! Didn't expect that it could be so easy x)
Thanks a lot ! :)
Mineodo68
28-Feb-20 10:00am
View
For example, i call my font :
Font regularFont = new Font("Futura LT Pro Book", fontSize, FontStyle.Regular, GraphicsUnit.Pixel);
After this, i use a drawstring :
g.DrawString("E" + variable, regularFont, Brushes.DeepSkyBlue, new Point(x1, x2));
But i need a specific RGB color for my string ("E" + variable).
I tried to do this :
g.DrawString("E" + variable, regularFont, Brushes.ColorFromArgb(77, 183, 255), new Point(x1, x2));
but it doesn't works (i can only add a default Visual Studio color after the Brushes.defaultcolorname)
I also have some Pen with custom colors but i can't use them with a Drawstring : Pen lightBlue = new Pen(Color.FromArgb(77, 183, 255), 1);
Mineodo68
28-Feb-20 9:55am
View
There's a misunderstanding, i said that what you gave me was to fill or draw shapes, and i was looking for something to custom color a font
Mineodo68
28-Feb-20 9:03am
View
Actually i did. I'm not sure you really understood what i was looking for. I need to fill a string with a custom RGB color, not a shape.
Mineodo68
28-Feb-20 8:55am
View
Yeah but it's only to fill or draw shapes, not a font...
Show More