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

Pages: 1-

C++ Image Handling

Name: Anonymous 2009-05-11 16:00

How do I display images in C++?

Name: Anonymous 2009-05-11 16:13

I feel like I've seen this thread before. Trying the same troll thread twice is weak, >>1-san, weak.

Name: Anonymous 2009-05-11 16:17

Allegro

Name: Anonymous 2009-05-11 16:20

imagestream s;
image<RGBA> i("image.bmp");
i.x = 100 = i.y = 100;
s << image;
dout << s;

Name: Anonymous 2009-05-11 16:21

>>4
Nomads. Sepples nomads.

Name: Anonymous 2009-05-11 16:23

>>4
your talking about Sepplesox but in any case that will be a great addition to the standard

Name: Anonymous 2009-05-11 16:23

#include <bitmap>
#include <iostream>

using std::bitmap;
using std::cout;
using std::cerr;
using std::endl;

int main(int argc, char **argv) {
    bitmap yhbt = "C:/Documents and Settings/Luser/Desktop/Sepples.png";
    if (!yhbt.isvalid()) {
        cerr << "YHBT, try www.google.com" << endl;
        return -1;
    }
    cout << bitmap << endl;
    return 0;
}

Name: Anonymous 2009-05-11 16:27

>>7
WHAT THE FUCK IS UP WITH THAT CODE JESUS FUC-
OH WAIT...
IHBT

Name: Anonymous 2009-05-11 16:28

Visual C++ using Dark GDK

Name: Anonymous 2009-05-11 16:33

You use Visual Basic

Name: Anonymous 2009-05-11 16:43

>>9
Darks aka Ecstasy?

Name: Anonymous 2009-05-11 18:43

return 0; considered superfluous.

Anyway, you can't do this in Sepples. Sepples is only capable of making Shape classes and Apples that bark().

Name: Anonymous 2009-05-11 19:27

>>12
Then how are all the vidya gaemz programmed in Sepples?

Name: Anonymous 2009-05-11 19:29

>>12
Your Apple derives from Tree. MyApple derives from MyFruit.

Name: Anonymous 2009-05-11 20:31

>>13
the vidya gaemz themselves aren't written in Sepples

DirectX is

Name: Anonymous 2009-05-11 22:28

>>15
that makes no sense whatsoever
how can you use a C++ library in a non-C++ compiler?

this whole damn thread makes no sense!

Name: Anonymous 2009-05-11 23:56

>>16
in b4 python compiler, ruby, thread over, etc.

Name: Anonymous 2009-05-12 3:58

Name: Anonymous 2009-05-12 8:37

>>17
You can't do that.

Name: Anonymous 2009-05-12 9:15

vidya gaemz are mainly made with Visual Basic these days

Name: Anonymous 2009-05-12 10:17

>>7
I'm actually tempted to write a wrapper around aalib or something which loads the image and dumps ASCII when used with operator<<. It wouldn't be that much work, I suspect.

Name: Anonymous 2009-05-12 13:51

>>21
operator<<

Stop raping the binary left shift operator for your perverted little games, Sepples programmers. It's disgusting and morally wrong.

Name: Anonymous 2009-05-12 14:03

>>22
Poor << operator :'(

Name: Anonymous 2009-05-12 15:13

Stop using syntax rules to define new hygienic syntactic forms, Scheme programmers. It's _________? what is it?

Name: Anonymous 2009-05-12 15:29

>>22
    int32_t poster = 22;
    mysqlpp::StoreResultQuery query;
    query << "SELECT * FROM `haxed` WHERE `poster` = >>" << poster;
    mysqlpp::StoreQueryResult res = query.store();

    if (res.empty()) {
        std::cerr << "It is die.";
        return;
    }

    string message;
    res[0]["anus"].to_string(message);
    std::cout << message << std::endl;

Name: Anonymous 2009-05-12 16:44

>>25
I came a little in my pantsu.

Name: Anonymous 2009-05-12 16:55

>>25
Whoops.

    mysqlpp::Connection db;
    db.set_option(new mysqlpp::ReconnectOption(true));
    db.connect("database", "host", "user", "pass", port);
    mysqlpp::Query query = db.query();


That's what I get when I try to Sepples from memory.

Name: Anonymous 2009-05-12 17:11


db.set_option(new mysqlpp::ReconnectOption(true));


SEPPLES

Name: Anonymous 2009-05-12 17:19

>>25
    int32_t poster = 22;
Don't you mean const int32_t poster = 22;?

Name: Anonymous 2009-05-12 18:24

>>29
Didn't you mean static final BigInteger POSTER = BigIntegerFactory.NewBigInteger(new IntegerToBigIntegerConversion(), 22);

Name: Anonymous 2009-05-12 20:02

>>30
lold heartily

Name: Anonymous 2009-05-12 20:29

>>29
Yes. I don't especially care about const correctness within the scope of a function, though. I'm the programmer, if I want to change that variable, I damn well will.

>>30
no

Name: Anonymous 2011-01-31 21:12

<-- check em dubz

Name: tray 2012-03-14 16:58

you better be

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