Iterator requirements

Casper Boemann cbr at
Tue Jul 6 00:07:08 CEST 2004

> Please explain to this poor Python/Java programmer -- if you have a
> (might as well call it Q_UINT8 though, if it's the colour strategy that
> floats of it), how can you handle that safely without checking bounds? You
> to make sure that you're somehow not mis-matching.

well it is just BYTES when it comes down' to it. The paintdevice,
tilemanager, iterators etc. SEES it as Q_UINT8 s (yes we could just as well
call it that), but since they do nothing about the data it doesn't matter.

The color strategy SEES the bytes as (say) 2 floats. No conversion is taking
place. It just a matter of interpreting the data. And since the
colorstrategy is the only part that makes sence of the bytes, it will never
be interpreted in any other way.

best regards
Casper Boemann

More information about the kimageshop mailing list