DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 6 of 6

Thread: 72 dpi bitamp

  1. #1
    Join Date
    Jan 2007
    Posts
    17

    72 dpi bitamp

    Hello everybody,

    I want to make 72 dpi bitmap file. Can anybody suggest me how can I do it?


    Thanks in advance.

  2. #2
    Join Date
    Jan 2005
    Location
    UK
    Posts
    604
    Hi,
    that's something you *CAN NOT* do.
    All you can do is create a bitmap and display it on a 72 dpi (dots per inch) device.
    Any bitmap that is displayed on such a device could of course be called a "72 dpi
    bitmap", but it doesn't make sense.
    That is unless your dpi is an acronym for something else?
    It would be helpful to know what you are trying to achieve.
    Cheers,
    D
    DKyb
    -------------------------------
    Life is a short warm moment -
    Death is the long cold rest.
    Pink Floyd
    -------------------------------

  3. #3
    Join Date
    Dec 2003
    Posts
    3,366
    well, you *can* use 72 pixels per inch as a base scale factor when you create the image, so that when you pop it onto the display one pixel is one pixel (if the graphics mode, card, and monitor all agree, which means on some small % of the existing computers youll get what your looking for ??)

  4. #4
    Join Date
    Nov 2003
    Posts
    4,118
    I think he meant a resolution of 72 DPI, which is what a scanner can use when scanning an image to a file. Obviously, the actual DPI will depend on the device that displays the image but the resolution is at least 72 DPI.
    Danny Kalev

  5. #5
    Join Date
    Jan 2007
    Posts
    17

    My qestion was about Device independent bitmap

    Dear all,

    Actually I want to develop device independant 24-bits 72 dpi bitmap file into memory. Please help me for that.

    Regards,
    Chirag.

  6. #6
    Join Date
    Dec 2003
    Posts
    3,366
    You have to know the dimension of the image you are creating in inches, then simply interpolate to stretch it to 72 pixels per inch. There are several algorithms for image resize - I think bicubic is the one most use by default (?).

Similar Threads

  1. TwipsPerPixel Change
    By imosha in forum VB Classic
    Replies: 3
    Last Post: 05-15-2006, 06:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links