jjzjj

imageScaleHeight

全部标签

java - 缩放图像并将其定位在 WPF 中的 0,0

我已经从RGBA像素列表创建了BitMapSource:BitmapSourcebmp=BitmapSource.Create(imageStrideInPixels,height,96,96,PixelFormats.Bgra32,null,imageData,imageStrideInPixels*pixelWidth);然后我从BitMapSource创建一个图像://createimageandsetimageassourceImageBmpImg=newImage();BmpImg.SetValue(Canvas.ZIndexProperty,0);BmpImg.Width=