Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you produce smoother graphics?
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00537542
Message ID:
00537844
Views:
16
You can try www.csharphelp.com or www.aspalliance.com. I didn't see that exact function in the .NET namespaces. You can look on msdn.microsoft.com and browse the .NET hierarchy. That doesn't mean its not there. Maybe its implemented under another name. You can check System.drawing.Bitmap or .Image. If not, you can call any Win32 API function in C# using the dllimport attribute. The sites above will have examples.

-Dave.

>Looks good. But is there something specific to C# that works the same way?
>
>>I think the function you are looking for is called bitblt, described on this page: http://vbgp.hypermart.net/tutoriais/BitBlt2/index.htm and on MSDN.
>>
>>Its a Win32 GDI API.
>>
>>-Dave.
>>
>>
>>>I'm building a pong game as an assignment. I am using the graphics object from the form and erasing then re-drawing the objects. I realize that this is not the best way because it is possible to draw an object and then erase another object erasing a portion of the first object drawn.
>>>
>>>Its been a while, but I seem to remember a way to by some kind of graphic bit manipulation you could ensure that the object your erasing is only erasing the portions which show only the background.
>>>
>>>There is a Clip object which I have tried to use but I am not too familiar with it. It looks like you can do a fair amount of manipulation of the drawn objects and then point that to the visible portion of your screen when you are done. I tried a number of different things but none of them seemed to work.
>>>
>>>TIA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform