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
