Re: [lazarus] help for Scanline exemple
wile64 wrote: I found, with Init_BPP32_B8G8R8A8_BIO_TTB and load ScanLineImage, work Ok with Init_BPP32_B8G8R8A8_BIO_TTB and CopyPixels in example don't work, IntfImage.CopyPixels(ScanLineImage); MyBitmap.LoadFromIntfImage(IntfImage); Thats why I asked what the description of IntfImage was and not ScanLineImage. When Copying pixels the description is not copied, but the pixels are matched to the description of IntfImage Marc _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] help for Scanline exemple
2007/11/7, Marc Weustink [EMAIL PROTECTED]: wile64 wrote: I found, with Init_BPP32_B8G8R8A8_BIO_TTB and load ScanLineImage, work Ok with Init_BPP32_B8G8R8A8_BIO_TTB and CopyPixels in example don't work, IntfImage.CopyPixels(ScanLineImage); MyBitmap.LoadFromIntfImage(IntfImage); Thats why I asked what the description of IntfImage was and not ScanLineImage. When Copying pixels the description is not copied, but the pixels are matched to the description of IntfImage Marc It should change can be an Scanline example for not use CopyPixels! Regards, -- Laurent. French Forum : http://lazforum-fr.tuxfamily.org/index.php
Re: [lazarus] help for Scanline exemple
wile64 wrote: 2007/11/7, Marc Weustink [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: wile64 wrote: I found, with Init_BPP32_B8G8R8A8_BIO_TTB and load ScanLineImage, work Ok with Init_BPP32_B8G8R8A8_BIO_TTB and CopyPixels in example don't work, IntfImage.CopyPixels(ScanLineImage); MyBitmap.LoadFromIntfImage(IntfImage); Thats why I asked what the description of IntfImage was and not ScanLineImage. When Copying pixels the description is not copied, but the pixels are matched to the description of IntfImage Marc It should change can be an Scanline example for not use CopyPixels! That is what I suggested in my first reply. (or change the description of IntfImage) Marc _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] help for Scanline exemple
Patch to change the ScanLine example, I delete IntfImage to save time and memory! Thanks, -- Laurent. French Forum : http://lazforum-fr.tuxfamily.org/index.php Scanline.patch Description: Binary data
Re: [lazarus] help for Scanline exemple
2007/11/6, Marc Weustink [EMAIL PROTECTED]: wile64 wrote: Hi, I use the example Scanline to change an image with the alpha channel as well. alphaTransparent = 0; alphaOpaque = 255; IntfImage.CopyPixels(ScanLineImage); what is the Description of IntfImage ? Does it have an Aplha channel ? see the Scanline example ;-) ScanLineImage:=TLazIntfImage.Create(0,0); ImgFormatDescription.Init_BPP32_B8G8R8_BIO_TTB(30,20); ScanLineImage.DataDescription:=ImgFormatDescription; MyBitmap.LoadFromIntfImage(IntfImage); Why not loading from ScanLineImage ? I change several images and load since ScanLineImage directly, there is plenty of evidence of previous file Canvas.Draw(10,10,MyBitmap); I think ths should work. Yes, but not transparency! The problem is that I have no transparency with this method. How to give transparency to MyBitmap? Marc Thanks Marc, -- Laurent. Soon -LAZTUCE- French Forum : http://lazforum-fr.tuxfamily.org/index.php
Re: [lazarus] help for Scanline exemple
wile64 wrote: Hi, I use the example Scanline to change an image with the alpha channel as well. alphaTransparent = 0; alphaOpaque = 255; IntfImage.CopyPixels(ScanLineImage); what is the Description of IntfImage ? Does it have an Aplha channel ? MyBitmap.LoadFromIntfImage(IntfImage); Why not loading from ScanLineImage ? Canvas.Draw(10,10,MyBitmap); I think ths should work. The problem is that I have no transparency with this method. How to give transparency to MyBitmap? Marc _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] help for Scanline exemple
Hi, I use the example Scanline to change an image with the alpha channel as well. alphaTransparent = 0; alphaOpaque = 255; IntfImage.CopyPixels(ScanLineImage); MyBitmap.LoadFromIntfImage(IntfImage); Canvas.Draw(10,10,MyBitmap); The problem is that I have no transparency with this method. How to give transparency to MyBitmap? Thanks for help, -- Laurent. Soon -LAZTUCE- French Forum : http://lazforum-fr.tuxfamily.org/index.php
Re: [lazarus] help for Scanline exemple
2007/11/6, wile64 [EMAIL PROTECTED]: 2007/11/6, Marc Weustink [EMAIL PROTECTED]: wile64 wrote: Hi, I use the example Scanline to change an image with the alpha channel as well. alphaTransparent = 0; alphaOpaque = 255; IntfImage.CopyPixels(ScanLineImage); what is the Description of IntfImage ? Does it have an Aplha channel ? see the Scanline example ;-) ScanLineImage:=TLazIntfImage.Create(0,0); ImgFormatDescription.Init_BPP32_B8G8R8_BIO_TTB(30,20); ScanLineImage.DataDescription:=ImgFormatDescription; MyBitmap.LoadFromIntfImage(IntfImage); Why not loading from ScanLineImage ? I change several images and load since ScanLineImage directly, there is plenty of evidence of previous file Canvas.Draw(10,10,MyBitmap); I think ths should work. Yes, but not transparency! The problem is that I have no transparency with this method. How to give transparency to MyBitmap? Marc Thanks Marc, -- Laurent. Soon -LAZTUCE- French Forum : http://lazforum-fr.tuxfamily.org/index.php Sorry, I have modified Description to Init_BPP32_B8G8R8A8_BIO_TTB Thanks, -- Laurent. Soon -LAZTUCE- French Forum : http://lazforum-fr.tuxfamily.org/index.php
Re: [lazarus] help for Scanline exemple
Sorry, I have modified Description to Init_BPP32_B8G8R8A8_BIO_TTB Thanks, Don't work :-( -- Laurent. Soon -LAZTUCE- French Forum : http://lazforum-fr.tuxfamily.org/index.php -- Laurent. Soon -LAZTUCE- French Forum : http://lazforum-fr.tuxfamily.org/index.php
Re: [lazarus] help for Scanline exemple
I found, with Init_BPP32_B8G8R8A8_BIO_TTB and load ScanLineImage, work Ok with Init_BPP32_B8G8R8A8_BIO_TTB and CopyPixels in example don't work, IntfImage.CopyPixels(ScanLineImage); MyBitmap.LoadFromIntfImage(IntfImage); Thanks Marc, -- Laurent. Soon -LAZTUCE- French Forum : http://lazforum-fr.tuxfamily.org/index.php
Re: [lazarus] help for Scanline exemple
I found, with Init_BPP32_B8G8R8A8_BIO_TTB and load ScanLineImage, work Ok with Init_BPP32_B8G8R8A8_BIO_TTB and CopyPixels in example don't work, IntfImage.CopyPixels(ScanLineImage); MyBitmap.LoadFromIntfImage(IntfImage); Thanks Marc, -- Laurent. Soon -LAZTUCE- French Forum : http://lazforum-fr.tuxfamily.org/index.php