AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
September 2005

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2005.09.21 02:27 "Large Tiff", by <acid@nchc.org.tw>
2005.09.21 21:21 "Re: Large Tiff", by Chris Cox

2005.09.21 02:27 "Large Tiff", by <acid@nchc.org.tw>

Dear sir

I wonder if you could help me solve this
I want to use the code below to read certain part of large tiff (2.64G)
,for example, read from (10000,10000) to (14000,14000)
till now they are working for 222MB Tiff but result from large 2.64G Tiff  
is a stretched and roughly grayscale with a little color images.
It is strange to me..
could you please give me some suggestion?

for (row = 0; row < cropheight; row++)
{
    iBuffPos = row * cropwidth * channel;
    TIFFReadScanline(tif, buf, row+stry);			
    memcpy( ( unsigned char* )m_buf + iBuffPos, (unsigned
        char*)buf+strx*channel, cropwidth*channel*iTypeBytes );
}


Best regards
Alison