This is a migrated thread and some comments may be shown as answers.

get image size (in pixel) in radgridview

1 Answer 192 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Pin
Top achievements
Rank 1
Iron
Pin asked on 04 Jul 2019, 06:53 PM

Hi.

I have a radgridview that contains many images. i want to get the image size (width and height in "pixel") of each image. how can i do that? 

Note: i have no access to image sources (in fact, there is no any image source. all images are in binary format and has been converted to image automatically in radgridview's image columns).

thanks in advance

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 08 Jul 2019, 08:03 AM
Hi Pin,

You cannot get the image from the grid. The images are converted dynamically for the currently visible cells only. You will need to manually convert the binary data to an image in order to get the size. Here is an article thea shows this: c# - Byte Array to Image Conversion.

I hope this helps. Should you have any other questions, do not hesitate to ask.

Regards,
Dimitar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
Pin
Top achievements
Rank 1
Iron
Answers by
Dimitar
Telerik team
Share this question
or