MicrosoftVisualStudio2010做的C#图片缩放实例,主要代码:ImageimageSource=bitmapSource;ImageFormatsourceFormat=imageSource.RawFormat;intiSourceWidth=imageSource.Width;intiSourceHeight=imageSource.Height;decimaldecTargetWidth=iSourceWidth*decTimes;decTargetWidth=Math.Round(decTargetWidth,0);stringsTargetWidth=decTarge