Skip to content
Loading
  • Yogesh Vedpathak
    +1
    HI Hema we need to see your code first
    +1
  • +1
    Hi hemalatha,
     
    I just tested with Image Control and a sample bitmap image in sample asp.net web application. It is displaying the image of extension .bmp.
     
    I think this is not the problem with Image Control. It is supporting .bmp files.
     
    I am attaching sample for your reference.
     
    Thank you.
    +1
  • +1
    Hema,
     
    If it is Ok with you to use a programming toolkit other than the default .NET classes, you can check the HTML5/JavaScript ImageViewer control from LEADTOOLS. They have an online demo here:
    http://demo.leadtools.com/JavaScript/Viewer/
    And the following JavaScript code shows how you can load a hosted BMP image using the imageViewer control from LEADTOOLS:
    1.    
    2. "en">   
    3.    
    4.    ImageViewer Example   
    5.       
    6.       
    7.       
    8.    "text/javascript">   
    9.       window.onload = function () {   
    10.          // Get the parent div for the image viewer   
    11.          var div = document.getElementById("imageViewerContainer");   
    12.          // Create a new image viewer instance   
    13.          var createOptions = new lt.Controls.ImageViewerCreateOptions(div);   
    14.          var imageViewer = new lt.Controls.ImageViewer(createOptions);   
    15.          // Load an image into it   
    16.          imageViewer.imageUrl = "http://localhost/images/image1.bmp";   
    17.       }   
    18.       
    19.    
    20.    
    21.       
    22.    "imageViewerContainer" style="width:800px; height:800px">
       
  •    
  •  
  •  
    +1
  • Bharathi Raja
    0
    1. Bitmap b = BitmapFactory.decodeByteArray(bitmapProfilePic , 0, bitmapProfilePic .length)  
    2. ivProfilePic.setImageBitmap(Bitmap.createScaledBitmap(b, 120, 120, false));  
    0