简体   繁体   English

从C#2D锯齿状阵列中获取图像

[英]Getting image out of a C# 2D jagged array

One of the routines for converting PDF to images that I have to work with returns the image as 2D array. 将PDF转换为我必须使用的图像的例程之一将图像作为2D数组返回。 After calling the convert function I have this: 调用转换函数后,我有这个:

byte[][] image = convertToPdf....

Hovering over the image variable, the debugger shows: image {byte[1][]} and hovering over that shows [0]{byte[124353]} 将鼠标悬停在image变量上,将显示:image {byte [1] []},将鼠标悬停在该变量上,将显示[0] {byte [124353]}

I am confused how I would could get the image into a 1d byte array in order to process or convert it to an actual image. 我很困惑如何将图像转换为1d字节数组以处理或转换为实际图像。

Any help is appreciated. 任何帮助表示赞赏。

您可以尝试以下方法:

byte[] pdf = image[0];

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM