drawing
drawing
drawing
drawing
drawing
drawing drawing drawing drawing drawing drawing drawing drawing
drawing drawing
drawing
Go Back  Xtreme Visual Basic Talk > > > > drawing


Reply
 
Thread Tools Display Modes
  #1  
Old 06-20-2006, 01:19 PM
jeroen1990 jeroen1990 is offline
Newcomer
 
Join Date: May 2006
Posts: 23
Angry drawing


can somebody explane me, how to draw a simple dot on the screen with directx9 for .net 2005 or could somebody help me with a graphics tutorial, vb4.com doesnt work for me.
Reply With Quote
  #2  
Old 06-20-2006, 01:50 PM
ShadowWolf ShadowWolf is offline
Centurion
 
Join Date: Jan 2006
Location: Finland
Posts: 114
Default

If this is where your trying to start with dx9 I could immediately say your starting from the wrong place. What you need to do in that case is to look up info on VertexBuffers. But from my DX7 experience I could say that you need to:

get the backbuffer surface
lock the bb surface
get the pixel array from the bb surface
set the pixel color of the pixel you want in the pixel array
return the pixel array to the bb surface
unlock the backbuffer surface

OR (slower version, I think)

get backbuffer hdc
use windows API call: SetPixel to set the pixel on the bb hdc
release the backbuffer hdc
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
drawing
drawing
drawing drawing
drawing
drawing
drawing drawing drawing drawing drawing drawing drawing
drawing
drawing
 
drawing
drawing
 
-->