> Anyone know how the hue "control" in DirectDraw works?
> I've tried the following but havent been able to get it working:
>
>
> 'Create sprite from bitmap
> '-- A blank SurfaceDescription suffices.
> sprite = New Surface("c:\test.bmp", New SurfaceDescription,
> GraphicsCard)
>
> 'Make all black areas of the sprite transparent
> '--You can specify a color, but it defaults to black
> Dim ck As ColorKey
> sprite.SetColorKey(ColorKeyFlags.SourceDraw, ck)
>
> 'Set a hue
> '-- Anywhere from 180 to -180
> Dim ccoHue As ColorControlObject = New ColorControlObject
> ccoHue.Hue = 100
>
> 'Try applying the hue to the sprite
> Dim ccHue As ColorControl
> Try
> 'Doesnt work
> ccHue = New ColorControl(sprite)
> Catch
> Beep()
> End Try
> Try
> 'Doesnt work
>
ccHue.ColorControls = ccoHue
> Catch
> Beep()
> End Try