Click here to Skip to main content
15,923,689 members
Home / Discussions / C#
   

C#

 
GeneralRe: Usercontrol Problem Pin
Heath Stewart13-May-04 3:05
protectorHeath Stewart13-May-04 3:05 
GeneralDragDrop registration failed Pin
michael.wikstrom12-May-04 22:32
michael.wikstrom12-May-04 22:32 
GeneralRe: DragDrop registration failed Pin
Heath Stewart13-May-04 3:03
protectorHeath Stewart13-May-04 3:03 
GeneralGDI+ Image from Graphics Pin
mhmoud rawas12-May-04 22:10
mhmoud rawas12-May-04 22:10 
GeneralRe: GDI+ Image from Graphics Pin
sprout7412-May-04 22:31
sprout7412-May-04 22:31 
GeneralRe: GDI+ Image from Graphics Pin
mhmoud rawas12-May-04 23:35
mhmoud rawas12-May-04 23:35 
GeneralRe: GDI+ Image from Graphics Pin
Heath Stewart13-May-04 3:01
protectorHeath Stewart13-May-04 3:01 
GeneralRe: GDI+ Image from Graphics Pin
mhmoud rawas13-May-04 4:19
mhmoud rawas13-May-04 4:19 
Dear Heath,

Thanks for help but for using bitblt i have to deal with HDC and i would like to make my application independent from the OS,
as for the second way i have try it before it didn't work becuse BitMap constructor use the graphics just for setting the bitmap rosolution and it don't get the drawon ojects from the graphics

<br />
protected override void OnPaint(PaintEventArgs e)<br />
{<br />
	e.Graphics.Clear(Color.White);<br />
	e.Graphics.DrawLine(Pens.Blue , 0 , 0, 100 , 100 );<br />
	Bitmap b = new Bitmap(100 ,100 , e.Graphics );<br />
	b.Save("c:\\test.bmp");<br />
{<br />


or

 <br />
protected override void OnPaint(PaintEventArgs e)<br />
{<br />
	Bitmap b = new Bitmap(100 ,100 , e.Graphics );<br />
	e.Graphics.Clear(Color.White);<br />
	e.Graphics.DrawLine(Pens.Blue , 0 , 0, 100 , 100 );<br />
	b.Save("c:\\test.bmp");<br />
}<br />


both tests gives me blank image

so do you know where is the problem

Regrads


Mhmoud Rawas
------------
Software Eng.
GeneralRe: GDI+ Image from Graphics Pin
Heath Stewart13-May-04 4:50
protectorHeath Stewart13-May-04 4:50 
GeneralRe: GDI+ Image from Graphics Pin
mhmoud rawas14-May-04 19:45
mhmoud rawas14-May-04 19:45 
GeneralRe: GDI+ Image from Graphics Pin
Heath Stewart16-May-04 11:17
protectorHeath Stewart16-May-04 11:17 
Generalregd richtextbox and datagrid Pin
karteek12-May-04 21:47
karteek12-May-04 21:47 
GeneralRe: regd richtextbox and datagrid Pin
Heath Stewart13-May-04 2:58
protectorHeath Stewart13-May-04 2:58 
Generalfirewall Pin
shahrokh nabavi12-May-04 21:07
shahrokh nabavi12-May-04 21:07 
GeneralRe: firewall Pin
Colin Angus Mackay12-May-04 23:26
Colin Angus Mackay12-May-04 23:26 
GeneralRe: firewall Pin
walker_net23-Jun-04 22:54
walker_net23-Jun-04 22:54 
GeneralRe: firewall Pin
Colin Angus Mackay23-Jun-04 23:03
Colin Angus Mackay23-Jun-04 23:03 
GeneralTable problem (Xml) Pin
bertcox12-May-04 20:40
bertcox12-May-04 20:40 
GeneralRe: Table problem (Xml) Pin
Aryadip12-May-04 21:20
Aryadip12-May-04 21:20 
GeneralScroll Bar Pin
sreejith ss nair12-May-04 19:18
sreejith ss nair12-May-04 19:18 
GeneralRe: Scroll Bar Pin
Heath Stewart13-May-04 2:54
protectorHeath Stewart13-May-04 2:54 
GeneralText Readers, Streams, *ugh* Pin
gUrM33T12-May-04 17:42
gUrM33T12-May-04 17:42 
GeneralRe: Text Readers, Streams, *ugh* Pin
Paul Watson12-May-04 21:23
sitebuilderPaul Watson12-May-04 21:23 
GeneralRe: Found an alternate way ... Pin
gUrM33T13-May-04 0:23
gUrM33T13-May-04 0:23 
GeneralRe: Text Readers, Streams, *ugh* Pin
Heath Stewart13-May-04 2:52
protectorHeath Stewart13-May-04 2:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.