Re: Writing a Game, huge image scroll problem



re-reading your first post...
why do you do all this cloning?
isn't that useless waste of processing power?

> - a Graphic object from a bitmap, 800x600
> - a Second bitmap
>
> Can i use bitblt passing
>
> - the graphic object of first bitmap as destination
> - the graphic object of second bitmap as source
> - two intptr created using getHdc()
>
> Because if i do that, i get no error in return value but the bitblt
> does not work...
I suppose so...
Maybe they are incompatible bitmap (typicall different color space)
But why not simply draw the second image onf the first image using variation
of Graphics.DrawImage()?
OKAY, you don't have all the Raster operation of GDI, but do you need them?

>
> Now i'm downloading the DX9 :)
>
>
> --
> Kappei Jin
> ------------------------------------------------------------------------
> Kappei Jin's Profile: http://www.hightechtalks.com/m69
> View this thread: http://www.hightechtalks.com/t2256512
>


.



Relevant Pages

  • Is this code the best way to measure a string?
    ... I need to create a Bitmap just big enough to display a string. ... Bitmap and a Graphic object only for that purpose. ... Dim bit As Bitmap = New Bitmap ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Unable to clone an image
    ... undoBitmap = new Bitmap; ... And then draw the bitmap back to the image using a graphic object: ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Problem with Encoder.Compression
    ... create a graphic object. ... I saved the bitmap with a new resolution and i apply ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Create BITMAP graphics with same properties of the PRINTER graphics
    ... Use a Graphics object created by a printer device as an argument to ... the Bitmap constructor that uses a Graphics object to create a bitmap with ... I am printing on the printer graphics. ... Ho can I create a graphic object g which has the same characteristics ...
    (microsoft.public.dotnet.framework.drawing)
  • SUMMARY: point-in-time bitmap copy
    ... documentation says to simply copy the bitmap to a second bitmap for use on ... consistency of the second bitmap if I/O is still being written to the master, ... When the shadows are brought back the primary and secondary bitmaps ... Move disk groupto second system. ...
    (SunManagers)