U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Image::GetDPI() doesn't return Size(0, 0)
Image::GetDPI() doesn't return Size(0, 0) [message #59673] Wed, 01 March 2023 11:13 Go to previous message
Mountacir is currently offline  Mountacir
Messages: 49
Registered: November 2021
Member
Hi,

Trying to check if an image has DPI using Image::GetDPI() but it does not return Size(0, 0) if it doesn't have it, while ImageBuffer::GetDPI() does.

	FileSelNative fs;
	fs.Type("png","*.png;*.png");
	if(!fs.ExecuteOpen()) return;
	
	Image image = StreamRaster::LoadFileAny(~fs);
	DUMP(image.GetDPI());

index.php?t=getfile&id=6781&private=0


Thanks
  • Attachment: dpi_0.png
    (Size: 1.84KB, Downloaded 466 times)
  • Attachment: test_image.zip
    (Size: 542.91KB, Downloaded 190 times)
 
Read Message
Read Message
Read Message
Previous Topic: Issue loading TIFF images with plugin/TIF
Next Topic: BufferPainter Clip Crash - Fatal error: Invalid memory access!
Goto Forum:
  


Current Time: Sat May 30 01:23:51 GMT+2 2026

Total time taken to generate the page: 0.00546 seconds