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

Pages: 1-4041-

HELP I SUCK AT CC++ AND YOU DONT

Name: Master Programmer 2009-05-07 21:01

Sup /prog/
How would I display an image using C or C++?

Name: Anonymous 2009-05-07 21:02

Also, how would I display it at a random location on the screen?

And how would I display a regular text of string at a random location?

Name: Anonymous 2009-05-07 21:02

NIGGERNIGGERNIGGER

Name: Anonymous 2009-05-07 21:04

internet.com

Name: Anonymous 2009-05-07 21:05

SeeSepples?!

Name: Anonymous 2009-05-07 21:06

>>5
SeSepples

Name: Anonymous 2009-05-07 21:08

OH FUCK THEY COMBINED THE TWO WORST PROGRAMMING LANGUAGES?


OH NOES

Name: Anonymous 2009-05-07 21:11

lrn2/ogre

Name: Anonymous 2009-05-07 21:11

>>7
they combined sepples and php? how?

Name: Anonymous 2009-05-07 21:32

char w[4096];
FILE *fd = fopen('display.txt', 'r');
while (fread(w, 1, 4096, fd)) {
    fwrite(w, 1, 4096, fb);
}

Name: Anonymous 2009-05-07 21:34

>>9
Sepplesox

Name: Anonymous 2009-05-07 21:35

>>3
NIGGERNIGGERNIGGER
Back to /b/, please.

Name: Anonymous 2009-05-07 22:01

>>12
While looking for causes behind the last thirty odd hours of absolute shit on /prog/ it came to my attention that /b/ was down. In the meantime I propose we suggest they go Back to /g/, please.

Name: Anonymous 2009-05-07 23:01

>>13
Perhaps we should direct them to /lounge/ instead.

Name: Anonymous 2009-05-07 23:02

why the fuck would you do image handling in C/C++?
Even though I'm sure there's some kinda of archaic library out there that would help, i don't know google it fuck. Anyways,

VISUAL BASIC MOTHERFUCKER, DO YOU USE IT?

Name: Anonymous 2009-05-07 23:11

>>15
SAGE FUNCTION MOTHERFUCKER, DO YOU USE IT?

Name: Anonymous 2009-05-08 0:09

You can write do it in about two or three lines using MSVC. If you want something more platform agnostic- your SLOC could easily get into the hundreds.

Name: Anonymous 2009-05-08 0:37

>>15
why the fuck would you do image handling in C/C++?
What?  It would be hell to parse/manipulate images in any other language.  But since the question is only ``how do I call the C/C++ function that already does the image handling'', it doesn't matter what language you use.

Name: Image Processing Expert 2009-05-08 0:54

Easiest way is with CImg. Look at the tutorial:
http://cimg.sourceforge.net/reference/group__cimg__tutorial.html

I HELPED HIM!!!

Name: SAGEFAULT MEME FAN 2009-05-08 0:58

>>19
Sagefault (Thread bumped)

Name: Anonymous 2009-05-08 1:05

>>19
Image Processing Expert
Relying on obscure open source forge hosted libraries to handle image proceessing and drawing- perhaps the single most important thing for usability in any application
IHBT

Name: Anonymous 2009-05-08 1:49

>>19
loled

C/C++ has image handling in the STL

OP is just too dumb open a book

Name: Anonymous 2009-05-08 2:01

>>18
It would be hell to parse/manipulate images in any other language.
Why?

Name: Anonymous 2009-05-08 2:01

>>22
What? No it doesn't. The STL deals with algorithms and data structures, and not so much with anything related to image displaying.

Name: Anonymous 2009-05-08 2:08

>>24
YHBT

Name: 24 2009-05-08 2:28

>>25
I am very pleased to say announced you have been `Meta`-trolled. How does that feel, to have been `meta`-trolled by a master troll? Here's a nickel kid, go tell somebody who cares.

Name: Anonymous 2009-05-08 3:09

>>1
What's a dont? Is that like a currency?

Name: Anonymous 2009-05-08 3:21

>>18
I wrote some PCX image routines in Perl many years ago, wasn't too difficult as I recall.

Name: Anonymous 2009-05-08 3:44

>>28
PCX? Brings back bad memories about trying to open screenshots made in StarCraft ;_;

Name: Anonymous 2009-05-08 16:54

Bump

Why? Because FUCK YOU that's why!

Name: Anonymous 2009-05-08 17:11

>>30
バンプ。バンプ。バンプ is the standard.

Name: Anonymous 2009-05-08 17:13

>>31
No it isn't you underage weeabbo faggot

Name: Anonymous 2009-05-08 17:14

>>32
weeabbo
Back to /b/, please.
lol, you spelled it wrong, too.

Name: Anonymous 2009-05-08 17:21

>>33
( ≖‿≖)

Name: Image Processing Expert 2009-05-08 17:37

>>21
I don't actually use CImg in my programs. I do my critical, speed-limiting processing with a few custom functions, along with high-quality libraries such as FFTW for the ÜBER-OPTIMIZED stuff, and I use Qt and raw OpenGL for the GUI/display. I have also used VTK and ITK for the crazier stuff like segmentation and volumetric rendering of medical data.

CImg is slow as fuck and limited, but it's easy to use and a very quick way to get a DQN PROGRAMMER to display his shitty image. A bit like you'd use Matlab to check out some data and validate your algorithm before spending 9001 hours on a C++ implementation.

IHBT and I feel kind of bad about it :(

Name: Anonymous 2009-05-08 17:39

>>34
( ´_ゝ`)

Name: Anonymous 2009-05-08 18:04

>>36
٩๏̯͡๏)۶

Name: Anonymous 2009-05-08 18:21

>>37
ಠ_ಠ

Name: Anonymous 2009-05-08 18:29

>>38
٩(̾●̮̮̃̾•̃̾)۶

Name: Anonymous 2009-05-08 18:37

>>39
(づの‿の)づ

Name: Anonymous 2009-05-08 18:44

>>40
Щ(φДφ)Щ

Name: Anonymous 2009-05-08 19:20

>>41

Name: Anonymous 2009-05-08 20:08

a hint is that c and c++ doesn't have any windowing system built into the standard, just like multithreading and networking

you have to use some sort of api (win32.q4)

Name: Anonymous 2009-05-08 20:17

>>43
Faggot!

Name: Anonymous 2009-05-08 20:28

>>43
I... I can't believe... you just helped him...
You... HELPED HIM! YOU FUCKING HELPED HIM! FUCKING THING SUCKS

Name: Anonymous 2009-05-08 20:46

>>45
Yes I did, and I feel kind of bad about it :(

Name: Anonymous 2009-05-12 23:19

bampu dicksu

Name: Trollbot9000 2009-07-01 8:00

Dumb open a book.

Name: Anonymous 2010-12-09 18:26

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