|
|
Up |
|
|
  |
Author: TrammelTrammel Date: Feb 27, 2008 18:29
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
|
| Show full article (0.99Kb) |
|
| | 9 Comments |
|
  |
Author: TrammelTrammel Date: Feb 28, 2008 06:49
> 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 ...
|
| Show full article (1.46Kb) |
|
| | no comments |
|
  |
Author: Jean-François BorieJean-François Borie Date: Feb 28, 2008 08:05
Hello,
Sorry to interupt, i saw that you ask how to read and play m3u files, with
directx, i need to do the same, could you post or send me your code, for
this. If you were able to achive this. In
microsoft.public.win32.programmer.directx.audio
Thank you
|
| |
| no comments |
|
  |
|
Author: TrammelTrammel Date: Feb 29, 2008 00:57
|
| |
| no comments |
|
  |
|
Author: TrammelTrammel Date: Feb 29, 2008 01:04
|
| |
| no comments |
|
  |
Author: Jean-François BorieJean-François Borie Date: Feb 29, 2008 02:44
Ok got the m3u working for reading it see bellow you can use this for asf but
it is an xml just have to parse xml, now still have to read the mp3 stream i
read that the WMAsfReader should work but when i try my US Robotic rooter
crash.
I need to try on different network. wma stream use this CLSID_NetShowSource
it is working.
|
| Show full article (1.12Kb) |
| no comments |
|
  |
Author: Tim RobertsTim Roberts Date: Feb 29, 2008 20:23
"Trammel" Server.com> wrote:
>"Trammel" Server.com> wrote in message:
>
>> Anyone know how the hue "control" in DirectDraw works?
>> I've tried the following but havent been able to get it working:
What DOES it do?
>Update:
>I keep finding the following information on the web and in a book that I
>bought on DirectX coding:
>
>"Next you make a call to IDIRECTDRAWCOLORCONTROL::SetColorControl(), and the
>primary surface will be immediately modified. The changes will remain in
>effect until you make
>another call." - Tricks of the Game Programming Gurus, André LaMothe.
>
>The problem Im having is that the class ColorControl has no
>"SetColorControl" function & it doesnt seem to accept the surface that Im
>passing it in its constructor.
|
| Show full article (1.01Kb) |
| no comments |
|
  |
Author: Tim RobertsTim Roberts Date: Feb 29, 2008 20:34
"Trammel" Server.com> wrote:
>"Jean-François Borie" discussions.microsoft.com> wrote:
>
>Nope. It got no replies, like this query.
>
>It seems the people that know how to code with DirectX dont want to
>share/help and those that are willing to share/help (like us) just dont know
>enough :¬/
Please get off your high horse. We are all volunteers here.
IDirectDrawColorControl is a relatively obscure interface of DirectDraw,
which in itself is not that common any more, and you are working with the
managed version, which is even less common. It is entirely possible that
no one else listening to this newsgroup has ever worked with it.
I hope that, when you have finished your experimentation and figured out
how to do it, that you post what you have learned here.
--
Tim Roberts, timr@ probo.com
Providenza & Boekelheide, Inc.
|
| |
| no comments |
|
  |
Author: TrammelTrammel Date: Mar 1, 2008 10:30
"Tim Roberts" probo.com> wrote in message
news:uimhs3h3ql418cdb01i0k3brq3e55p1vt3@4ax.com...
> "Trammel" Server.com> wrote:
>>"Jean-Fran
|
| |
| no comments |
|
  |
|
|
  |
Author: TrammelTrammel Date: Mar 1, 2008 10:56
"Trammel" Server.com> wrote in message
news:bhhyj.218523$3m6.69649@fe2.news.blueyonder.co.uk...
*snipped rant at/about asshole posting "flame" just because he cant answer
the question*
> If anyone knows how a newbie to DirectX that knows pretty-much nothing,
> has only been looking at DirectX as few days and admits to being a noob
> (just from stating whats backed-up by years of posts in groups/forums all
> over the internet)... plz lemme know. (This thread doesnt look much use
> for anything else now, might aswell give the troll his flaming thread)
Oops - seems my overwrite was on, instead of insert. Last paragraph shoulda
been:
If anyone knows how a newbie to DirectX that knows pretty-much nothing, has
only been looking at DirectX as few days and admits to being a noob has a
"high horse" (just from stating whats backed-up by years of posts in
groups/forums all over the internet)... plz lemme know. (This thread doesnt
look much use for anything else now, might aswell give the troll his flaming
thread)
|
| |
| no comments |
|
|