Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 163 times)
  • Attachment: test_image.zip
    (Size: 542.91KB, Downloaded 55 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: Thu Jul 18 20:11:19 CEST 2024

Total time taken to generate the page: 0.01390 seconds