[Gdal-dev] gDAL --> DIB

Frank Warmerdam fwarmerdam at gmail.com
Tue Feb 8 17:37:27 EST 2005


On Tue, 8 Feb 2005 17:20:12 -0500, Clay, Bruce <bclay at ball.com> wrote:
>  
> A question of Alain Rist or anyone that has been able to get the
> CreateDibFromFile method he posted to work. 
> 
> I can load the images and display them in an MFC application but the images
> are mostly white with very few features showing as compared to looking at
> the same image in imageLinker or iView. 
> 
> Does anyone have any thoughts as to what could be causing this or another
> method that might be used with windows apps to display GDAL data? 

Bruce, 

One obvious possible reason would be if you were loading 16bit
data files.  All values larger than 255 would by truncated to 255. 
However, I think you will need to provide some more information
in order to get a concrete answer.  

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the Gdal-dev mailing list