Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

C# Image class being a fag

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?

Name: Anonymous 2011-06-24 17:21

lol c#

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.

Name: Anonymous 2011-06-24 17:40

Read SICP.

Name: Anonymous 2011-06-24 19:15

You need to add a reference to System.Drawing

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.

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.

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

Name: Anonymous 2011-06-24 21:17

Give it the full path.

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''.

Name: Anonymous 2011-06-24 23:07

>>8
This, I think you're looking for BitmapImage.Something(...) or new BitmapImage(...).

Name: Anonymous 2011-06-24 23:10

>>10
Hey, faggot, we only work this joint, we ain't majoring in its history.

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.

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

Name: Anonymous 2011-06-25 14:01

>>14
yhbt faggot im drunk

Don't change these.
Name: Email:
Entire Thread Thread List