Re: GetDIBits richtig verwenden

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



29.01.2006 02:02, Karsten Schulz schrob:

> grüße Frank!
>
> mach mal sowas hier.
>
> wenn du mit CreateDIBSection einen DeviceIndepend bereich anlegst
> und mit SelectObject dort eine Bitmap reinwählst hast du immer in
> der m_pDat dessen daten, im übrigen benutzt DIB aus der VFW die
> hardware besser als normale GDI funktionen DirectX macht das auch.

VFW?

Aber Du wirst lachen - inzwischen habe ich längst durch Herumprobieren den
Weg über CreateDIBSection gewählt, ich hätte es hier vielleicht mal
erwähnen sollen.
Allerdings selektiere ich das Bitmap nach dem Erzeugen in einen DC, damit
ich dann ganz leicht bitblitten kann.
Allerdings werden 256-Farben-Bilder völlig falsch dargestellt, weshalb ich
dann zu 24 Bit übergegangen bin. Und da hab ich dann gleich alles so
geschrieben, daß er mittels Schleife über jeden Pixel bei beliebigen
Farbtiefen die Pixeldifferenz bildet.

> verwende mal nicht gdi++, dann gleich Delphi oder jawa beer besser

Ich bin von Delphi auf C++ umgesprungen, weil die Programme kleiner werden,
Dafür brauch ich jetzt länger zum Erstellen *grins*

Aber Delphi beruft sich doch dann eh auch wieder auf die GDI, dachte ich.
Der Canvas-Typ kapselt doch nur die Zugriffe darauf.
Und Java (falls Du das meintest) ist für solch umfangreiche Berechnungen
einfach nur bäbä.
--
Gruß | Greetings | Qapla' - http://www.stud.tu-ilmenau.de/~frst-ii/

Deutschlektion heute: Vor Satzzeichen kommt kein Leerzeichen (plenken).
Gegen die OjE-Plage: http://piology.org/news/oe-erste-schritte.html
.



Relevant Pages

  • Re: GdipCreateHBITMAPFromBitmap + PixelFormat32bppARGB
    ... The Windows bitmap specification was drawn up for Windows 3.1 ... Alpha blended bitmaps were not supported. ... The documentation for AlphaBlend function implies that Windows GDI ... an alpha channel. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: The story: Painting bitmap to screen is slow
    ... The general "trick" behind great GDI+ performance is to do all drawing ... single bitmap to the screen. ... I heard Microsoft broke GDI acceleration for some operations in Vista. ... your configuration of Vista or graphics driver. ...
    (microsoft.public.dotnet.framework.drawing)
  • The story: Painting bitmap to screen is slow
    ... I've done a lot graphics programming by now and the thing that bothers me with GDI+ in .NET framework the most is slow drawing of bitmaps to screen. ... In Win32, there were two types of bitmaps, compatible and memory bitmap. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Creating a GDI+ Bitmap from an 8-bit Bitmap
    ... Ok, when I create the GDI+ bitmap from a DIB, the image looks a bit better. ... That tells me that something is still a bit off with my palette. ...
    (microsoft.public.win32.programmer.gdi)
  • Re: How do I get a device context from an indexed bitmap?
    ... You can use Lockbits to transfer your System.Drawing.Bitmap to a GDI DIB ... Your only other choice is to convert your indexed bitmap to 24bpp and draw ... My code demonstrates how to create an empty canvas to draw on. ... You must select your DIB's handle into this memory device context so that ...
    (microsoft.public.dotnet.languages.vb)