Emile,

You are turning green and blue to full on, instead set them to 0:



On Mar 8, 2007, at 8:57 AM, Emile SCHWARZ wrote:

> Hi,
>
> REALbasic 2007r1 Pro for Mac OS X 10.4.8
>
>
> I use the following code to remove the Red part of the pixels from  
> the passed Picture:
>
>   surf = Pict.RGBSurface
>   If surf = Nil Then
>     // Stop here
>     Return // Exit silently
>   End If
>
>   // Remove the Green and Blue parts
>   For MapLoop = 0 To 255
>     RedMap(MapLoop)   = MapLoop
>  //   GreenMap(MapLoop) = 255
> //    BlueMap(MapLoop)  = 255

     GreenMap(MapLoop) = 0
     BlueMap(MapLoop)  = 0


>   Next
>
>   // Apply the change
>   surf.Transform RedMap,GreenMap,BlueMap
>
>
>
> Of course - this is why I ask the question - I do not get what I  
> wanted!


mike
--
mike woodworth
[EMAIL PROTECTED]

>
>
> TIA,
>
> Emile
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to