I need to read the resolution in X and Y of an AcDbRasterImage inserted into a drawing using ObjectARX
I've tryed AcDbRasterImage and AcDbRasterImageDef but I can't find out the information I need.
Can anyone help?
Thanks
Bianchi Flavio
Hi,
You want size in pixels? From documentation:
Returns the raw image size in pixels. (The image size is also available directly from the AcDbRasterImageDef object.)
Does it help you?
Thanks Jonathan,
I've seen the imagesize function but I need to extract the DPI of the image.
Imagesize reports that the image is xxx pixels high and yyy pixels width but I need to know
how many DPI this pixels are.
Thanks
Flavio
Have you looked at the AcDbRasterImage class in the ObjectARX reference? I see AcDbRasterImage::imageWidth() and AcDbRasterImage::imageHeight(), which appear to be what you're looking for.