<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>I am trying to undestand better ... I got now an pf32bit pixelformat!!!!!! I need to check several cases ...</p>
<p> </p>
<p>Em 18.06.2014 11:10, Philippe escreveu:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<p>I am trying to get raw data of image to use it as texture. (Lazarus/windows 32 bits)</p>
<p>basically I wrote some stuff like that</p>
<p> </p>
<p> pict := TPicture.create;<br /><br /> try<br /> pict.loadFromFile( ExpandFileNameUTF8( arqname));<br /> bm := pict.bitmap;<br /><br /></p>
<p> // getting widht and height from bitmap (working fine!)</p>
<p> ....</p>
<p> // pixels from bitmap<br /> pbarq := bm.rawimage.Data;<br /><br /></p>
<p> // copy to my texture object ....</p>
<p> .....</p>
<p> except</p>
<p>// some message</p>
<p> end;</p>
<p> </p>
<p>the problem is that sometimes raw data are in a RGBA format, sometimes in a RGB format !</p>
<p> </p>
<p>in both case pixelFormat gives me "pf24bit" !!!!!!!</p>
<p> </p>
<p>is there a simple way to distinguish the cases?</p>
<p> </p>
<p>if there a better list to post this, just tell me!</p>
<p> </p>
<p>thanks</p>
<p>Philippe</p>
<p> </p>
<!-- html ignored --><br />
<pre>--
_______________________________________________
Lazarus mailing list
<a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
</pre>
</blockquote>
<p> </p>
</body></html>