C++ Image Handling
1
Name:
Anonymous
2009-05-11 16:00
How do I display images in C++?
2
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.
3
Name:
Anonymous
2009-05-11 16:17
Allegro
4
Name:
Anonymous
2009-05-11 16:20
imagestream s;
image<RGBA> i("image.bmp");
i.x = 100 = i.y = 100;
s << image;
dout << s;
5
Name:
Anonymous
2009-05-11 16:21
>>4
Nomads. Sepples nomads.
6
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
7
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;
}
8
Name:
Anonymous
2009-05-11 16:27
>>7
WHAT THE FUCK IS UP WITH THAT CODE JESUS FUC-
OH WAIT...
IHBT
9
Name:
Anonymous
2009-05-11 16:28
Visual C++ using Dark GDK
10
Name:
Anonymous
2009-05-11 16:33
You use Visual Basic
11
Name:
Anonymous
2009-05-11 16:43
12
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().
13
Name:
Anonymous
2009-05-11 19:27
>>12
Then how are all the vidya gaemz programmed in Sepples?
14
Name:
Anonymous
2009-05-11 19:29
>>12
Your
Apple derives from
Tree.
MyApple derives from
MyFruit.
15
Name:
Anonymous
2009-05-11 20:31
>>13
the vidya gaemz themselves aren't written in Sepples
DirectX is
16
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!
17
Name:
Anonymous
2009-05-11 23:56
>>16
in b4 python compiler, ruby, thread over, etc.
18
Name:
Anonymous
2009-05-12 3:58
19
Name:
Anonymous
2009-05-12 8:37
20
Name:
Anonymous
2009-05-12 9:15
vidya gaemz are mainly made with Visual Basic these days
21
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.
22
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 .
23
Name:
Anonymous
2009-05-12 14:03
>>22
Poor
<< operator :'(
24
Name:
Anonymous
2009-05-12 15:13
Stop using syntax rules to define new hygienic syntactic forms, Scheme programmers. It's _________? what is it?
25
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;
26
Name:
Anonymous
2009-05-12 16:44
>>25
I came a little in my pantsu.
27
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.
28
Name:
Anonymous
2009-05-12 17:11
db.set_option(new mysqlpp::ReconnectOption(true));
SEPPLES
29
Name:
Anonymous
2009-05-12 17:19
>>25
int32_t poster = 22;
Don't you mean
const int32_t poster = 22;?
30
Name:
Anonymous
2009-05-12 18:24
>>29
Didn't you mean
static final BigInteger POSTER = BigIntegerFactory.NewBigInteger(new IntegerToBigIntegerConversion(), 22);
31
Name:
Anonymous
2009-05-12 20:02
32
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
33
Name:
Anonymous
2011-01-31 21:12
<-- check em dubz
34
Name:
tray
2012-03-14 16:58
you better be