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: 45
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 134 times)
  • Attachment: test_image.zip
    (Size: 542.91KB, Downloaded 45 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: Sun Apr 28 02:20:06 CEST 2024

Total time taken to generate the page: 0.04931 seconds