|
You last visited: Today at 11:30
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.
05/09/2013, 21:06
|
#1
|
elite*gold: 12312
Join Date: Dec 2010
Posts: 10,834
Received Thanks: 639
|
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
|
|
|
05/09/2013, 21:19
|
#2
|
elite*gold: 0
Join Date: Aug 2010
Posts: 880
Received Thanks: 113
|
Hast du Option Strict on an?  Du musst entweder "gra" anders deklarieren oder konvertieren mit CType
|
|
|
05/09/2013, 21:31
|
#3
|
elite*gold: 12312
Join Date: Dec 2010
Posts: 10,834
Received Thanks: 639
|
Irgendwie kommt jetzt ein Screnn aus Firefox und nicht aus dem internen Webbrowser :x
|
|
|
05/09/2013, 23:46
|
#4
|
elite*gold: 0
Join Date: Feb 2010
Posts: 7,220
Received Thanks: 6,758
|
Ich bin mir gerade nicht sicher, aber kann man das Bitmap nicht direkt in die PictureBox als Image einbinden?
|
|
|
05/10/2013, 12:50
|
#5
|
elite*gold: 12312
Join Date: Dec 2010
Posts: 10,834
Received Thanks: 639
|
habe es gelöst bekommen
|
|
|
 |
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 +1. The time now is 11:35.
|
|