English 中文(简体)
在将沥青阵列转换成图像时,在修改星体阵列和星体阵列后,将错误从C#的图像本身中去掉。
原标题:error while converting the byte array to image ,after modifying the byte array and the byte array is taken from the image itself in c#
  • 时间:2010-05-10 06:35:50
  •  标签:
  • c#
  • .net
  • image

这是我的法典。 i hv 在这里形成一阵列,即试图在这种旁边阵列中增加一些 v,说10,而单壳则注意价值不超过255。 之后,如果试图通过以下法典重新绘制图像,那一线就出现错误。 问题何在,如果我试图掌握自己的形象,如果一心一意,它不会产生某种价值的话,则不作改动。

public Image btoi(byte[] bt)
{
    ms = new MemoryStream(bt, 0, bt.Length);
    img = Image.FromStream (ms, true); // error at this line
    ms.Close();

    return img;
}
问题回答

图像数据可以按不同格式储存,包括头盔描述图像数据。 如果你想要改变 p子的RGB价值,你首先必须保证,你所用的图像格式确实是用RGB格式储存数据,其次只能操纵含有RGB价值观的记忆圈子。

如果你改变整个记忆圈子,你很可能超出显示形象高的价值观。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签