Click here to Skip to main content
15,898,371 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# and Window Message Hooks Pin
felopater14-Jul-05 5:44
felopater14-Jul-05 5:44 
GeneralNetwork version of application in C# Pin
Anonymous13-Jul-05 23:34
Anonymous13-Jul-05 23:34 
GeneralC# MySQL 5.0 and storeprocedure Pin
dexom13-Jul-05 23:04
dexom13-Jul-05 23:04 
GeneralRe: C# MySQL 5.0 and storeprocedure Pin
Gavin Jeffrey14-Jul-05 0:31
Gavin Jeffrey14-Jul-05 0:31 
GeneralRe: C# MySQL 5.0 and storeprocedure Pin
Zishan Haider15-Jul-05 4:23
Zishan Haider15-Jul-05 4:23 
GeneralRe: C# MySQL 5.0 and storeprocedure Pin
Gavin Jeffrey15-Jul-05 6:00
Gavin Jeffrey15-Jul-05 6:00 
GeneralRe: C# MySQL 5.0 and storeprocedure Pin
Guffa14-Jul-05 3:48
Guffa14-Jul-05 3:48 
GeneralResizing Gif-images that is transparent Pin
thomasa13-Jul-05 23:02
thomasa13-Jul-05 23:02 
I'm trying to resize a gif-image that is transparent. But it looses it's transparesy.
Does someone know how to do this?

My code:
public Bitmap _bitmap = null;
private void getGraphicsFromImageNotStretched(MemoryStream ms, int hight, int width)
{
Image image = Image.FromStream(ms);
double orgHight = (double)image.Height;
double orgWidth = (double)image.Width;
if((orgHight * hight) > (orgWidth * width))
{
double ratio = (orgWidth * width) / (orgHight * hight);
_bitmap = new Bitmap(image, (int)((double)width * ratio), hight);
}
else
{
double ratio = (orgHight * hight) / (orgWidth * width);
_bitmap = new Bitmap(image, width, (int)((double)hight * ratio));
}

image.Dispose();
}

Thanks
Thomas
GeneralRe: Resizing Gif-images that is transparent Pin
Guffa14-Jul-05 3:56
Guffa14-Jul-05 3:56 
GeneralRe: Resizing Gif-images that is transparent Pin
thomasa19-Jul-05 5:51
thomasa19-Jul-05 5:51 
GeneralRe: Resizing Gif-images that is transparent Pin
Guffa25-Jul-05 3:47
Guffa25-Jul-05 3:47 
GeneralRe: Resizing Gif-images that is transparent Pin
thomasa8-Aug-05 1:57
thomasa8-Aug-05 1:57 
GeneralRe: Resizing Gif-images that is transparent Pin
Guffa8-Aug-05 22:55
Guffa8-Aug-05 22:55 
GeneralRe: Resizing Gif-images that is transparent Pin
thomasa9-Aug-05 1:06
thomasa9-Aug-05 1:06 
GeneralSimple Problem Pin
tatchung13-Jul-05 22:07
tatchung13-Jul-05 22:07 
GeneralRe: Simple Problem Pin
Expert Coming14-Jul-05 8:35
Expert Coming14-Jul-05 8:35 
GeneralRe: Simple Problem Pin
tatchung14-Jul-05 15:18
tatchung14-Jul-05 15:18 
GeneralRe: Simple Problem Pin
Christian Graus14-Jul-05 15:53
protectorChristian Graus14-Jul-05 15:53 
GeneralRe: Simple Problem Pin
tatchung14-Jul-05 16:03
tatchung14-Jul-05 16:03 
GeneralRe: Simple Problem Pin
Christian Graus14-Jul-05 16:15
protectorChristian Graus14-Jul-05 16:15 
GeneralRe: Simple Problem Pin
tatchung14-Jul-05 16:22
tatchung14-Jul-05 16:22 
QuestionWhat mistake in this Asynchronous webservice Pin
Vinkum13-Jul-05 21:33
Vinkum13-Jul-05 21:33 
GeneralSet Time Zone Information in Windows CE Pin
myanne13-Jul-05 21:29
myanne13-Jul-05 21:29 
Generalc# code Pin
manar113-Jul-05 21:28
manar113-Jul-05 21:28 
GeneralRe: c# code Pin
J4amieC13-Jul-05 22:56
J4amieC13-Jul-05 22:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.