C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,648 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
In a .net 4.8 console app I need to make an area of a jpg file transparent, but when I do, it shows black, not transparent, and I cannot use png file format.
var graphic = Graphics.FromImage(thumbnail);
graphic.Clear(Color.Transparent);
Any idea who to resolve this?
Thanks.
JPEG doesn't support transparency so GIF/PNG are your best bets.