Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 10:06

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



System.Drawing.Graphics in System.Drawing.image

Discussion on System.Drawing.Graphics in System.Drawing.image within the .NET Languages forum part of the Coders Den category.

Closed Thread
 
Old   #1
 
elite*gold: 0
The Black Market: 193/0/0
Join Date: Dec 2010
Posts: 10,572
Received Thanks: 581
System.Drawing.Graphics in System.Drawing.image

hi,
Titel regelt, hier ist noch der Codeausschnitt:

Code:
Dim Bmap = New Bitmap(Me.Width, Me.Height)
        Dim gra As Graphics = Graphics.FromImage(Bmap)
        gra.CopyFromScreen(WebBrowser1.Location.X, WebBrowser1.Location.Y, 0, 0, WebBrowser1.Size)
        gra.Dispose()
        PictureBox1.Image = gra
Error:
Code:
Der Wert vom Typ "System.Drawing.Graphics" kann nicht in "System.Drawing.Image" konvertiert werden.
Bin wirklich am verzweifeln, alle Lösungen die ich bei Google gefunden habe verstehe ich nicht, bzw. kann ich nicht richtig anwenden.
Wäre nett wenn mir jemand helfen könnte



Ky0n' is offline  
Old 05/09/2013, 21:19   #2
 
elite*gold: 0
Join Date: Aug 2010
Posts: 867
Received Thanks: 102
Hast du Option Strict on an? Du musst entweder "gra" anders deklarieren oder konvertieren mit CType


Ludder231 is offline  
Old 05/09/2013, 21:31   #3
 
elite*gold: 0
The Black Market: 193/0/0
Join Date: Dec 2010
Posts: 10,572
Received Thanks: 581
Irgendwie kommt jetzt ein Screnn aus Firefox und nicht aus dem internen Webbrowser :x
Ky0n' is offline  
Old 05/09/2013, 23:46   #4

 
elite*gold: 0
Join Date: Feb 2010
Posts: 7,214
Received Thanks: 6,753
Ich bin mir gerade nicht sicher, aber kann man das Bitmap nicht direkt in die PictureBox als Image einbinden?


#SoNiice is offline  
Old 05/10/2013, 12:50   #5
 
elite*gold: 0
The Black Market: 193/0/0
Join Date: Dec 2010
Posts: 10,572
Received Thanks: 581
habe es gelöst bekommen


Ky0n' is offline  
Closed Thread



« [Visual Basic] Suche Auto Update Source | C# ImapX (Unread Abfrage) »

Similar Threads
[EN] Drawing
07/21/2012 - General Art - 2 Replies
Okay guys, this is my second thread, with a slightly different topic than the last one. I'm ganna get the Wacom Bamboo tablet in about ten-fourteen days, but until then I need practice. So, I figured some old school pen and paper drawing would do the trick. I don't have a lot of experience in drawing, but with patience and practice, I'll manage. So, any tips? To speed things up, I'm ganna name a few options and you tell me what's good and what's not. A sketchbook? I'm new to drawing, yet...
Speed Drawing
07/03/2011 - Anime & Manga - 10 Replies
Hiho liebe community, ich hab hier ein paar videos gemacht... :D schaut sie euch mal einfach an :D Hier ----> Klick Feedback erwünsch^^!!
System.Drawing
07/08/2010 - CO2 Programming - 9 Replies
Not strong in this :L Not good with Forms, Events and system.Drawing Im making a key event draw a new Rectangle when the key is (Down) is pressed, but its not drawing a new rectangle when i press down continuously: private void Form1_KeyDown(object sender, KeyEventArgs e) { Graphics GE = Graphics.FromHwnd(this.Handle); Pen PE = new Pen(Color.Black); Rectangle NE = new Rectangle(15, 15, 20, 50);
SRO related drawing
01/19/2008 - Silkroad Online - 6 Replies
I am making a drawing of a Glaiver, I was just bored and wanted to get peoples opinion, it does not use any of the sro armor, I made up my own items, the glaive is somewhat like the level 100 glaive. http://img147.imageshack.us/img147/4301/scannedim agedl3.th.jpg Leave a comment. :) It is still a drawing in progress, not done yet. Quality is really low in imageshack, I do not know any other place. Download attachment, maybe it has better details...



All times are GMT +2. The time now is 10:06.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

BTC: 33E6kMtxYa7dApCFzrS3Jb7U3NrVvo8nsK
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2019 elitepvpers All Rights Reserved.