<DIV><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-US">Hi guys<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></DIV>  <DIV><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-US">&nbsp;<o:p></o:p></SPAN></DIV>  <DIV><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-US">I&nbsp;would like dump the content of image into an array to&nbsp;do some processing; I was able to extract rows <o:p></o:p></SPAN></DIV>  <DIV><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-US"><o:p>&nbsp;</o:p></SPAN></DIV>  <DIV><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-US">But I want to extract the whole image band &nbsp;how this can be done<o:p></o:p></SPAN></DIV>  <DIV><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-US"><o:p>&nbsp;</o:p></SPAN></DIV> 
 <DIV><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-US">I used this code <o:p></o:p></SPAN></DIV>  <DIV><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-US"><o:p>&nbsp;</o:p></SPAN></DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN lang=DE style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: DE">nXSize = GDALGetRasterBandXSize( hBand );<o:p></o:p></SPAN></DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN lang=DE style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: DE">nYSize = GDALGetRasterBandYSize( hBand );<o:p></o:p></SPAN></DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN lang=DE style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: DE"><o:p>&nbsp;</o:p></SPAN></DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align:
 none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: EN-US">pafScan = (<SPAN style="COLOR: blue">float</SPAN> *) CPLMalloc(<SPAN style="COLOR: blue">sizeof</SPAN>(<SPAN style="COLOR: blue">float</SPAN>)*nXSize*nYSize);<o:p></o:p></SPAN></DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: EN-US"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>GDALRasterIO( hBand, GF_Read, 0, 0, nXSize, nYSize, <o:p></o:p></SPAN></DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: EN-US"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-spacerun:
 yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>pafScan, nXSize,nYSize,GDT_Float32, <o:p></o:p></SPAN></DIV>  <DIV><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: EN-US"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>0, 0 );</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-US"><o:p></o:p></SPAN></DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT face="Times New Roman" size=3>But still when I say </FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: EN-US">pafScan[10,10] it give me the value of 10<SUP>th</SUP> pixel in the first row<o:p></o:p></SPAN></DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New';
 mso-ansi-language: EN-US"><SPAN style="mso-spacerun: yes">&nbsp;</SPAN></SPAN><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p></o:p></SPAN></DIV><BR><BR><DIV>
<DIV>
<DIV align=center><BR><BR><STRONG>Best Regard<BR></STRONG>&nbsp;<BR>Eng. Salah Al Jubeh<BR><BR>MCP,MCAD,MCSD <BR><BR><IMG src="http://saalaah.jeeran.com/salahjubeh.png"><BR><BR>Mobile:00306947192421</DIV>
<DIV align=center><BR>&nbsp;</DIV></DIV></DIV><p>
        
                <hr size=1> Yahoo! Mail<br> 
<a href="http://us.rd.yahoo.com/mail_us/taglines/pmall2/*http://photomail.mail.yahoo.com">Use Photomail</a> to share photos without annoying attachments.