C# Image class being a fag
1
Name:
Anonymous
2011-06-24 17:19
Can somebody explain to me what i need to do to call
Image newImage = Image.FromFile("SampImag.jpg");
.FromFile or for that matter any function/method in the Image class seems to be non existant. NOW WHY THE FUCK IS THAT?
2
Name:
Anonymous
2011-06-24 17:21
lol c#
3
Name:
Anonymous
2011-06-24 17:38
I don't know because I don't know Cisharp , but try Googling the error message you get.
4
Name:
Anonymous
2011-06-24 17:40
Read SICP.
5
Name:
Anonymous
2011-06-24 19:15
You need to add a reference to System.Drawing
6
Name:
Anonymous
2011-06-24 19:26
Image newImage = new Image(new ImageReader(new ImageWriter(new FileContentsReader(new FilePathReader(new FilePathWriter("SampImag.jpg"))))));
I believe this is what you're looking for.
7
Name:
Anonymous
2011-06-24 20:34
>>6
IMAGEPTR iptr = HImageReadContentFileStream("SampImag.jpg", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
Image newImage = HImagePtrToInstance(iptr, &iptr, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
Gotta follow the proper protocol, yo.
8
Name:
Anonymous
2011-06-24 20:44
Isn't Image an abstract base class or some shit and you have actaully use a Bitmap class or something
9
Name:
Anonymous
2011-06-24 21:17
Give it the full path.
10
Name:
Anonymous
2011-06-24 21:54
C# is a Microsoft technology. That means it's totally Uncool . If you're a history buff, you will recall that the original name for the C# programming language was ``Cool''.
11
Name:
Anonymous
2011-06-24 23:07
>>8
This, I think you're looking for
BitmapImage.Something(...) or
new BitmapImage(...).
12
Name:
Anonymous
2011-06-24 23:10
>>10
Hey,
faggot , we only work this joint, we ain't majoring in its history.
13
Name:
Anonymous
2011-06-25 13:24
>>12
I'll have you know that there are many /prog/ historians around here.
>>6
Still nicer than Java.
14
Name:
Anonymous
2011-06-25 13:52
>>6
There is already a
Image.FromFile(sring fileName). WTF is with the
ImageReader(ImageWriter(... shit?
http://msdn.microsoft.com/en-us/library/stf701f5.aspx
15
Name:
Anonymous
2011-06-25 14:01
>>14
yhbt faggot im drunk