Re: a newbie needed help on DIB and DirectShow



On Thu, 18 Aug 2005 17:46:04 -0700, TL wrote:

> Hi Jeremy,
>
> Thanks for your response. BTW, would you mind give me more details for how
> to use GDI+ to render a video from DIB. For instance, what keywords I can
> use to search MSDN communities to find some related threads? Previously I
> was not a Win App developer and so I didn't have much knowledge on GDI+.
> Thanks again.

Let's position this.

If you want to produce moving video on the screen then DirectShow is the
way to go. If you have a source of bitmaps that you want to display in
sequence (like a cartoon) then see the push source samples. This will
allow you to build a graph showing Device Independant Bitmaps (DIBs!) fery
easily (well, for DirectShow!).

If you have a bitmap (DIB) in a file that you simply want to show on the
screen once (like the background of a form, for example), then the easiest
way is to use an ActiveX control to do it! VB and DOTNET have quite a few.

If you have some need to do it via a low level language then you need to
look up things like Device Contexts DIB StretchDIBits and stuff like that
IIRC the SDK Docs section on bitmaps provides the information with no more
than the usual obscurity!


Iain
--
Iain Downs (DirectShow MVP)
Commercial Software Therapist
www.idcl.co.uk
.



Relevant Pages

  • Re: a newbie needed help on DIB and DirectShow
    ... to use GDI+ to render a video from DIB. ... was not a Win App developer and so I didn't have much knowledge on GDI+. ... etc) for how to write a DirectShow program to display DIB ...
    (microsoft.public.win32.programmer.directx.video)
  • for noll: very astounding premium nntp access - uvtu ukko - (1/1)
    ... Images, video, mp3 music, the real news from around the world... ... ikfe ajne i osridopgof oj, ethi al ozce, dib ec ah sak gobyu fipmo mamsa eb enna. ... Ab i esju aycu i alpe ruj jemmo lancu ni kirme ac! ...
    (de.comp.sys.amiga.tech)
  • Re: Picture control max size?
    ... I've printed large bitmaps ... DIB of the size you mentioned in your post (6154 x 7548 pixels at 24 bit ... Private Declare Function CreateCompatibleDC Lib "gdi32" _ ... Dim myDC As Long, myDIB As Long, oldBmp As Long ...
    (microsoft.public.vb.general.discussion)
  • Re: LoadImage & LR_CREATEDIBSECTION
    ... > transform a DDB into a DIB. ... with GDI - it's all taken care of for you behind the scenes. ... rare cases can have an arbitrary depth Since this is a GDI object ...
    (microsoft.public.vb.winapi.graphics)
  • Re: GDI zoom
    ... in one line of code and without the additional dependency of GDI+. ... Similar tasks with bitmaps are very difficult in vb6. ... however trying to use this case as a reason ... There is a huge amount of added functionality. ...
    (microsoft.public.vb.general.discussion)