public int ComputeStrip(int row, short plane)
{
int strip = 0;
if (m_dir.td_rowsperstrip != -1)
strip = row / m_dir.td_rowsperstrip;
if (m_dir.td_planarconfig == PlanarConfig.SEPARATE)
{
if (plane >= m_dir.td_samplesperpixel)
{
ErrorExt(this, m_clientdata, m_name, "{0}: Sample out of range, max {1}", plane, m_dir.td_samplesperpixel);
return 0;
}
strip += plane * m_dir.td_stripsperimage;
}
return strip;
}