Posted on 2005-04-21
Last Modified: 2013-12-03
Is there anyway I can get the size of a bitmap?I have loaded a bitmap using LoadIMage API.Now I would like to
know how many rows and columns it has,for further processsing of the image.For example if the size is 32X32,it
should return intereger row as 32 and int col as 32.
Thank you
Question by:samroyc
    LVL 19

    Expert Comment

    LVL 19

    Accepted Solution

    LVL 33

    Expert Comment

    Return image type and size from JPEG, GIF, BMP, & PNG files.

    Author Comment

    I am still struggling to get dimensions of a bitmap.I am using MFC,in a dialog box application.I have loaded the bitmap
    from a file.The GetBitDimension seems to be to get the size in mms.I just need to return the size,for example if
    the bitmap is 64X32,I need to be able to return 64 and 32 as integers.  

    Author Comment

    After trying some more,I was able to do it with the help of the answer I accepted

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Suggested Solutions

    Title # Comments Views Activity
    Problem to adjust sheet 1 78
    Changing the installation path of this MSI 5 75
    scoresClump  challenge 31 85
    mergeTwo  challenge 13 53
    INTRODUCTION We all know how to code. But at times you simply want to insert a common code block into your existing code and amend it as per your requirements. This tool not only saves you time but also saves you the pain of typing it all out aga…
    This article will show, step by step, how to integrate R code into a R Sweave document
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now