BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to get Image Resolution

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Md. Shariful Alam Khan
Guest





PostPosted: Thu Sep 14, 2006 1:29 am    Post subject: How to get Image Resolution Reply with quote



Hello,

How can I get any image (bmp, jpeg, jpg, ico, png, gif etc) resolution like
Horizontal X Vertical sample (96X96).
--
Thanks
Best Regards
Md. Shariful Alam Khan
Back to top
Peter Bone
Guest





PostPosted: Thu Sep 14, 2006 2:49 pm    Post subject: Re: How to get Image Resolution Reply with quote



Md. Shariful Alam Khan wrote:
Quote:
Hello,

How can I get any image (bmp, jpeg, jpg, ico, png, gif etc) resolution like
Horizontal X Vertical sample (96X96).
--
Thanks
Best Regards
Md. Shariful Alam Khan

All those should have Width and Height properties. ABmp.Width, etc.
Back to top
Michel Leunen
Guest





PostPosted: Thu Sep 14, 2006 11:30 pm    Post subject: Re: How to get Image Resolution Reply with quote



Md. Shariful Alam Khan wrote:

Quote:
How can I get any image (bmp, jpeg, jpg, ico, png, gif etc) resolution like
Horizontal X Vertical sample (96X96).

Use Gdi+ as it supports many image formats. Load your image in a Image
object and use the GetPhysicalDimension() method on this object.

Michel
--
----------------------------------------
Michel Leunen
mailto: see my homepage.
C++Builder, BCC5.5.1 Web site:
http://www.leunen.com/
----------------------------------------
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.