Software Solutions
Member
- Joined
- Oct 10, 2007
- Messages
- 9
- Programming Experience
- 1-3
i am currently working on Game Designing and i am reading a book named Begining.Net Game Programming in VB.net. i found 2 statments while i was reading the book. here are the two statements with details
from about 2 codes the statmen Graphics.FromImage(Picsource.Image) & Graphics.FromHWND(Picsouce.Handle) when i type Graphics and press "dot" in the list i can find .fromImage but i could not see .FromHwnd but both statments after completing are working Fine.
What i want to know that why this happening. that FromHWND is not showing after pressing . but working perfectly.
Take Care
ENJOY
VB.NET:
1)
Dim GameGraphics As Graphics
GameGraphics = Graphics.FromHwnd(PicSource.Handle)
GameGraphics.FillRectangle(New SolidBrush(Color.Red), 10, 20, 13, 7)
VB.NET:
2)
Dim GameGraphics As Graphics
GameGraphics = Graphics.FromImage(PicSource.Image)
GameGraphics.FillRectangle(New SolidBrush(Color.Red), 10, 20, 13, 7)
from about 2 codes the statmen Graphics.FromImage(Picsource.Image) & Graphics.FromHWND(Picsouce.Handle) when i type Graphics and press "dot" in the list i can find .fromImage but i could not see .FromHwnd but both statments after completing are working Fine.
What i want to know that why this happening. that FromHWND is not showing after pressing . but working perfectly.
Take Care
ENJOY