473,405 Members | 2,373 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

image reading

I want to know how to read image files in C.. what are the headers
that i should include? is there any tutorials regarding this ? pls
inform me.
Oct 6 '08 #1
36 2347
vi*******@gmail.com said:
I want to know how to read image files in C.. what are the headers
that i should include?
C doesn't directly support any particular image format (although one might
make out a case for XPM), but it's easy enough to open a file using fopen.
Then comes the fun part - working out which bit of the file means what.
is there any tutorials regarding this ?
http://www.wotsit.org has the specs on lots of file formats.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Oct 6 '08 #2
On Oct 6, 4:18 pm, vimal3...@gmail.com wrote:
I want to know how to read image files in C.. what are the headers
that i should include? is there any tutorials regarding this ?
You can open files with fopen. You can read their data with various
functions, for example, fgetc, fread.
The headers that should be included depend on the functions you are
going to use.
Any decent C book will help you with all these.
I recommend K&R2.
pls inform me.
pls? Don't you mean please? Type the whole word, please.
Oct 6 '08 #3
In article <5a**********************************@c22g2000prc. googlegroups.com>,
<vi*******@gmail.comwrote:
>I want to know how to read image files in C.. what are the headers
that i should include? is there any tutorials regarding this ? pls
inform me.
You probably don't want to write this yourself. There are free
libraries available for the common formats like JPEG and TIFF, and
they should be fairly portable. Obviously displaying an image is
system-dependent, but just reading in the data is much less so.

Start by Googling for libjpeg, libtiff, libpng...

-- Richard
--
Please remember to mention me / in tapes you leave behind.
Oct 6 '08 #4
On Mon, 06 Oct 2008 06:18:32 -0700, vimal3271 wrote:
I want to know how to read image files in C.. what are the headers that
i should include? is there any tutorials regarding this ? pls inform me.
Simple:

libgd http://www.libgd.org

Powerful:

libvips http://vips.sf.net
Oct 6 '08 #5
vi******@gmail.com said:
On Oct 6, 4:18 pm, vimal3...@gmail.com wrote:
>I want to know how to read image files in C.. what are the headers
that i should include? is there any tutorials regarding this ?

You can open files with fopen. You can read their data with various
functions, for example, fgetc, fread.
The headers that should be included depend on the functions you are
going to use.
Any decent C book will help you with all these.
I recommend K&R2.
Perhaps you could remind me which section of K&R2 deals with image formats?

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Oct 6 '08 #6
On Oct 6, 6:20 pm, Richard Heathfield <r...@see.sig.invalidwrote:
vipps...@gmail.com said:
On Oct 6, 4:18 pm, vimal3...@gmail.com wrote:
I want to know how to read image files in C.. what are the headers
that i should include? is there any tutorials regarding this ?
You can open files with fopen. You can read their data with various
functions, for example, fgetc, fread.
The headers that should be included depend on the functions you are
going to use.
Any decent C book will help you with all these.
I recommend K&R2.

Perhaps you could remind me which section of K&R2 deals with image formats?
OP mentioned image files, image files are just files.
Oct 6 '08 #7
vi*******@gmail.com pisze:
I want to know how to read image files in C.. what are the headers
that i should include? is there any tutorials regarding this ? pls
inform me.
For me the simplest image file is PPM. If you can create file you can
also read it.

==================
#include <stdio.h>
int main() {
const int dimx = 800;
const int dimy = 800;
int i, j;
FILE * fp = fopen("first.ppm", "wb"); /* b - tryb binarny */
fprintf(fp, "P6\n%d %d\n255\n", dimx, dimy);
for(j=0; j<dimy; ++j){
for(i=0; i<dimx; ++i){
static unsigned char color[3];
color[0]=i % 255; /* red */
color[1]=j % 255; /* green */
color[2]=(i*j) % 255; /* blue */
fwrite(color,1,3,fp);
}
}
fclose(fp);
return 0;
}

====================================
Look also :

http://fraktal.republika.pl/g_file.html
HTH

Adam
Oct 6 '08 #8
vi******@gmail.com said:
On Oct 6, 6:20 pm, Richard Heathfield <r...@see.sig.invalidwrote:
>vipps...@gmail.com said:
On Oct 6, 4:18 pm, vimal3...@gmail.com wrote:
I want to know how to read image files in C.. what are the headers
that i should include? is there any tutorials regarding this ?
You can open files with fopen. You can read their data with various
functions, for example, fgetc, fread.
The headers that should be included depend on the functions you are
going to use.
Any decent C book will help you with all these.
I recommend K&R2.

Perhaps you could remind me which section of K&R2 deals with image
formats?

OP mentioned image files, image files are just files.
On one level, yes, that's true - but if he just meant arbitrary files, he'd
have said so. He specifically mentioned image files, and it doesn't
require a genius to deduce that he wishes to do some kind of image
processing (even if it's only display), which means he's going to need to
be able to decode image formats. He realises this. I realise this. And I
suspect you realise this too. To pretend otherwise is disingenuous.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Oct 6 '08 #9
On Mon, 06 Oct 2008 06:18:32 -0700, vimal3271 wrote:
I want to know how to read image files in C.. what are the headers that
i should include? is there any tutorials regarding this ? pls inform me.
Well, it depends on which formats you need to open. Do you just want to
read the image files, or be able to display them.

You could try "Developer's Image Library" and write code to use it.

http://directory.fsf.org/project/DevIL/

Or for more open source image libraries, you could look here.

http://directory.fsf.org/category/ilibs/

stonerfish
Oct 6 '08 #10
On 6 Oct 2008 at 16:29, Richard Heathfield wrote:
vi******@gmail.com said:
On one level, yes, that's true - but if he just meant arbitrary files, he'd
have said so. He specifically mentioned image files, and it doesn't
require a genius to deduce that he wishes to do some kind of image
processing (even if it's only display), which means he's going to need to
be able to decode image formats. He realises this. I realise this. And I
suspect you realise this too. To pretend otherwise is disingenuous.
Not so much fun when it's someone else playing the
deliberate-misunderstanding game, is it?

Oct 6 '08 #11
On Oct 6, 7:29 pm, Richard Heathfield <r...@see.sig.invalidwrote:
vipps...@gmail.com said:
On Oct 6, 6:20 pm, Richard Heathfield <r...@see.sig.invalidwrote:
vipps...@gmail.com said:
On Oct 6, 4:18 pm, vimal3...@gmail.com wrote:
I want to know how to read image files in C.. what are the headers
that i should include? is there any tutorials regarding this ?
You can open files with fopen. You can read their data with various
functions, for example, fgetc, fread.
The headers that should be included depend on the functions you are
going to use.
Any decent C book will help you with all these.
I recommend K&R2.
Perhaps you could remind me which section of K&R2 deals with image
formats?
OP mentioned image files, image files are just files.

On one level, yes, that's true - but if he just meant arbitrary files, he'd
have said so. He specifically mentioned image files, and it doesn't
require a genius to deduce that he wishes to do some kind of image
processing (even if it's only display), which means he's going to need to
be able to decode image formats. He realises this. I realise this. And I
suspect you realise this too. To pretend otherwise is disingenuous.
I mentioned what's possible within standard C.
If someone asks for arrays, I'll reply for C arrays; I don't care if
he was obviously asking for something else, ie arrays in computer
science et cetera.
That's for three reasons

1) One who gets replies quite different than what he expected, would
stop and think if he's asking in the right newsgroup. (especially
since someone would suggest that...)
2) One who searches comp.lang.c for arrays won't find replies to CS
arrays; he'll find replies for C arrays.
3) Replying for CS arrays would be off-topic; Telling him to ask in a
CS newsgroup would be misleading to those who search for arrays in
this newsgroup.

Oct 6 '08 #12
On Oct 6, 8:09 pm, vipps...@gmail.com wrote:
<snip>
ie arrays in computer science et cetera.
^^ ^^ ^^^^^^

Whoops, that might piss those who know latin well... :-)
Oct 6 '08 #13

<vi*******@gmail.comwrote in message news:
>I want to know how to read image files in C.. what are the headers
that i should include? is there any tutorials regarding this ? pls
inform me.
Basic Algorithms includes chapters on BMP, GIF and JPEG formats. Code is
free to download. However it is teaching code - the JPEG decoder won't
handle JPEG2 for example.
See website for details.

--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm

Oct 6 '08 #14
In article <7d**********************************@d31g2000hsg. googlegroups.com>,
<vi******@gmail.comwrote:
>ie arrays in computer science et cetera.
>Whoops, that might piss those who know latin well... :-)
Why?

-- Richard
--
Please remember to mention me / in tapes you leave behind.
Oct 6 '08 #15
vi******@gmail.com said:
Richard Heathfield wrote:
>vi******@gmail.com said:
Richard Heathfield wrote:
vi******@gmail.com said:
<snip>
I recommend K&R2.
>Perhaps you could remind me which section of K&R2 deals with image
formats?
OP mentioned image files, image files are just files.

On one level, yes, that's true - but if he just meant arbitrary files,
he'd have said so. He specifically mentioned image files, and it doesn't
require a genius to deduce that he wishes to do some kind of image
processing (even if it's only display), which means he's going to need
to be able to decode image formats. He realises this. I realise this.
And I suspect you realise this too. To pretend otherwise is
disingenuous.

I mentioned what's possible within standard C.
Within standard C, it's possible to read all kinds of image formats in
useful ways that let you do productive image processing. Yes, you use
fopen and getc and so on to get the data into memory, but there's a lot
more to it than that. Whilst, strictly speaking, such questions are not as
topical as they perhaps might be, it doesn't do anyone any favours for you
to pretend you don't know what he almost certainly is really after.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Oct 6 '08 #16

"Richard Heathfield" <rj*@see.sig.invalidwrote in message
Within standard C, it's possible to read all kinds of image formats in
useful ways that let you do productive image processing. Yes, you use
fopen and getc and so on to get the data into memory, but there's a lot
more to it than that. Whilst, strictly speaking, such questions are not as
topical as they perhaps might be, it doesn't do anyone any favours for you
to pretend you don't know what he almost certainly is really after.
You don't need a graphics card to do graphics. Some of the most
sophisticated rendering programs run on mainframe machines with teletype
style black and white terminals.

--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm

Oct 6 '08 #17
Malcolm McLean said:
>
"Richard Heathfield" <rj*@see.sig.invalidwrote in message
>Within standard C, it's possible to read all kinds of image formats in
useful ways that let you do productive image processing. Yes, you use
fopen and getc and so on to get the data into memory, but there's a lot
more to it than that. Whilst, strictly speaking, such questions are not
as topical as they perhaps might be, it doesn't do anyone any favours
for you to pretend you don't know what he almost certainly is really
after.
You don't need a graphics card to do graphics. Some of the most
sophisticated rendering programs run on mainframe machines with teletype
style black and white terminals.
Yes, absolutely. I've got a fairly hefty number of graphics processing
programs here, all written in ISO C.

The reason that graphics processing questions are mostly off-topic here is
not that they can't be written in ISO C - because very often they *can*.
But for the most part they are better directed to graphics programming
newsgroups. The ones that are topical here are those where the C code is
the issue (e.g. "here's my code for alpha-blending two images together,
but it seems to be falling over in the bit that reads the two files...,
can anyone help?", that sort of thing).

Nevertheless, even where such questions are not strictly topical, they may
very well form the basis for an interesting discussion with, perhaps,
topical aspects.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Oct 6 '08 #18

<vi******@gmail.comwrote in message
news:1f**********************************@y21g2000 hsf.googlegroups.com...
On Oct 6, 7:29 pm, Richard Heathfield <r...@see.sig.invalidwrote:
>Perhaps you could remind me which section of K&R2 deals with image
formats?
OP mentioned image files, image files are just files.
I mentioned what's possible within standard C.
If someone asks for arrays, I'll reply for C arrays; I don't care if
he was obviously asking for something else, ie arrays in computer
science et cetera.
So what's the difference between a computer science array and a C one?

--
Bartc

Oct 6 '08 #19
In article <ka******************************@bt.com>,
Richard Heathfield <rj*@see.sig.invalidwrote:
....
>Yes, you use
fopen and getc and so on to get the data into memory, but there's a lot
more to it than that. Whilst, strictly speaking, such questions are not as
topical as they perhaps might be, it doesn't do anyone any favours for you
to pretend you don't know what he almost certainly is really after.
Irony meters all over CLC have just gone Poof!

Oct 7 '08 #20
"Malcolm McLean" <re*******@btinternet.comwrote:
<vi*******@gmail.comwrote in message news:
I want to know how to read image files in C.. what are the headers
that i should include? is there any tutorials regarding this ? pls
inform me.
Basic Algorithms includes chapters on BMP, GIF and JPEG formats. Code is
free to download.
And free to use? You have no license on your website that I can find, so
anyone thinking about using that code in a commercial context _has_ to
decide against it. If that's not your attention, you should make that
clear - not here, but in the code itself.

Richard
Oct 7 '08 #21
On Oct 7, 2:27 am, "Bartc" <b...@freeuk.comwrote:
<vipps...@gmail.comwrote in message

news:1f**********************************@y21g2000 hsf.googlegroups.com...
On Oct 6, 7:29 pm, Richard Heathfield <r...@see.sig.invalidwrote:
Perhaps you could remind me which section of K&R2 deals with image
formats?
OP mentioned image files, image files are just files.
I mentioned what's possible within standard C.
If someone asks for arrays, I'll reply for C arrays; I don't care if
he was obviously asking for something else, ie arrays in computer
science et cetera.

So what's the difference between a computer science array and a C one?
You can point to one element past the last of an array in C. CS arrays
don't care about that.
It was an example anyway.
Oct 7 '08 #22
On Oct 7, 12:22 am, Richard Heathfield <r...@see.sig.invalidwrote:
vipps...@gmail.com said:
<snip>
I mentioned what's possible within standard C.

Within standard C, it's possible to read all kinds of image formats in
useful ways that let you do productive image processing. Yes, you use
fopen and getc and so on to get the data into memory, but there's a lot
more to it than that. Whilst, strictly speaking, such questions are not as
topical as they perhaps might be, it doesn't do anyone any favours for you
to pretend you don't know what he almost certainly is really after.
You snipped the part where I explain why I chose to behave as if I
didn't know what OP is talking about.

Oct 7 '08 #23
vi******@gmail.com said:
On Oct 7, 12:22 am, Richard Heathfield <r...@see.sig.invalidwrote:
>vipps...@gmail.com said:
<snip>
I mentioned what's possible within standard C.

Within standard C, it's possible to read all kinds of image formats in
useful ways that let you do productive image processing. Yes, you use
fopen and getc and so on to get the data into memory, but there's a lot
more to it than that. Whilst, strictly speaking, such questions are not
as topical as they perhaps might be, it doesn't do anyone any favours
for you to pretend you don't know what he almost certainly is really
after.

You snipped the part where I explain why I chose to behave as if I
didn't know what OP is talking about.
Whatever. Such behaviour is self-marginalising.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Oct 7 '08 #24
In article <7e**********************************@w32g2000hsf. googlegroups.com>,
<vi******@gmail.comwrote:
>On Oct 7, 12:22 am, Richard Heathfield <r...@see.sig.invalidwrote:
>vipps...@gmail.com said:
<snip>
I mentioned what's possible within standard C.

Within standard C, it's possible to read all kinds of image formats in
useful ways that let you do productive image processing. Yes, you use
fopen and getc and so on to get the data into memory, but there's a lot
more to it than that. Whilst, strictly speaking, such questions are not as
topical as they perhaps might be, it doesn't do anyone any favours for you
to pretend you don't know what he almost certainly is really after.

You snipped the part where I explain why I chose to behave as if I
didn't know what OP is talking about.
This is just so funny, on so many levels.

Oct 7 '08 #25
On Oct 7, 1:07 pm, Richard Heathfield <r...@see.sig.invalidwrote:
vipps...@gmail.com said:
On Oct 7, 12:22 am, Richard Heathfield <r...@see.sig.invalidwrote:
vipps...@gmail.com said:
<snip>
I mentioned what's possible within standard C.
Within standard C, it's possible to read all kinds of image formats in
useful ways that let you do productive image processing. Yes, you use
fopen and getc and so on to get the data into memory, but there's a lot
more to it than that. Whilst, strictly speaking, such questions are not
as topical as they perhaps might be, it doesn't do anyone any favours
for you to pretend you don't know what he almost certainly is really
after.
You snipped the part where I explain why I chose to behave as if I
didn't know what OP is talking about.

Whatever. Such behaviour is self-marginalising.
I tried to search for "self-marginalising", but the results I get from
dictionaries are definitions of the word marginalise, which don't
help. What do you mean?

Also, would you mind explaining these posts by you? Were you self-
marginalising as well, or is there something in those cases that made
you post what you posted?

Message-ID: <dv**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com>
Message-ID: <01************************@eton.powernet.co.uk>

They appear similar to mine.

Oct 7 '08 #26
vi******@gmail.com said:

<snip>
Message-ID: <dv**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com>
Message-ID: <01************************@eton.powernet.co.uk>

They appear similar to mine.
Yes, they are. I've learned better since then. Can you?

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Oct 7 '08 #27
vipps...@gmail.com wrote:
On Oct 7, 1:07 pm, Richard Heathfield <r...@see.sig.invalidwrote:
vipps...@gmail.com said:
....
You snipped the part where I explain why I chose to behave as if I
didn't know what OP is talking about.
Whatever. Such behaviour is self-marginalising.

I tried to search for "self-marginalising", but the results I get from
dictionaries are definitions of the word marginalise, which don't
help. What do you mean?
To marginalize something means to move it to the margins; in this
context, that implies that it has been rendered unimportant. The
concept behind this meaning is that center of something is more
important than it's margins. Saying that you are "self marginalizing"
means that you are rendering yourself unimportant.
Oct 7 '08 #28
On Oct 7, 5:26 pm, Richard Heathfield <r...@see.sig.invalidwrote:
vipps...@gmail.com said:

<snip>
Message-ID: <dv3f5r$5j...@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com>
Message-ID: <01beef3e$135e23a0$36053...@eton.powernet.co.uk>
They appear similar to mine.

Yes, they are. I've learned better since then. Can you?
I can learn better, but I'm not convinced. We're just disagreeing at
something.
I think, the next time, I'll reply with a similar post but perhaps
include a sentence dedicated to telling OP where to look for better
information, that should settle it.

Oct 7 '08 #29
On Oct 7, 5:58 pm, jameskuy...@verizon.net wrote:
vipps...@gmail.com wrote:
On Oct 7, 1:07 pm, Richard Heathfield <r...@see.sig.invalidwrote:
vipps...@gmail.com said:
...
You snipped the part where I explain why I chose to behave as if I
didn't know what OP is talking about.
Whatever. Such behaviour is self-marginalising.
I tried to search for "self-marginalising", but the results I get from
dictionaries are definitions of the word marginalise, which don't
help. What do you mean?

To marginalize something means to move it to the margins; in this
context, that implies that it has been rendered unimportant. The
concept behind this meaning is that center of something is more
important than it's margins. Saying that you are "self marginalizing"
means that you are rendering yourself unimportant.
Ah, thanks.
Oct 7 '08 #30
vi******@gmail.com said:

<snip>
I think, the next time, I'll reply with a similar post but perhaps
include a sentence dedicated to telling OP where to look for better
information, that should settle it.
I agree that helping the OP is better than not helping the OP.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Oct 7 '08 #31
In article <db**********************************@m36g2000hse. googlegroups.com>,
<vi******@gmail.comwrote:
>On Oct 7, 1:07 pm, Richard Heathfield <r...@see.sig.invalidwrote:
>vipps...@gmail.com said:
On Oct 7, 12:22 am, Richard Heathfield <r...@see.sig.invalidwrote:
vipps...@gmail.com said:
<snip>
I mentioned what's possible within standard C.
>Within standard C, it's possible to read all kinds of image formats in
useful ways that let you do productive image processing. Yes, you use
fopen and getc and so on to get the data into memory, but there's a lot
more to it than that. Whilst, strictly speaking, such questions are not
as topical as they perhaps might be, it doesn't do anyone any favours
for you to pretend you don't know what he almost certainly is really
after.
You snipped the part where I explain why I chose to behave as if I
didn't know what OP is talking about.

Whatever. Such behaviour is self-marginalising.

I tried to search for "self-marginalising", but the results I get from
dictionaries are definitions of the word marginalise, which don't
help. What do you mean?

Also, would you mind explaining these posts by you? Were you self-
marginalising as well, or is there something in those cases that made
you post what you posted?

Message-ID: <dv**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com>
Message-ID: <01************************@eton.powernet.co.uk>

They appear similar to mine.
It seems to me that a new RH has appeared on the scene. He appears to
have finally seen how stupid all this posturing is.

Or, to look at it another way: Once one person admits that there exists
this charade of "chosing to behave as if (i.e., pretending) I didn't
know what OP is talking about", it basically ruins it for everybody.
So here, vippy, you've ruined it for everybody. I think RH sees that
there's no point in this little charade anymore.

Oct 7 '08 #32

"Richard Bos" <rl*@hoekstra-uitgeverij.nlwrote in message
"Malcolm McLean" <re*******@btinternet.comwrote:
><vi*******@gmail.comwrote in message news:
>I want to know how to read image files in C.. what are the headers
that i should include? is there any tutorials regarding this ? pls
inform me.
Basic Algorithms includes chapters on BMP, GIF and JPEG formats. Code is
free to download.

And free to use? You have no license on your website that I can find, so
anyone thinking about using that code in a commercial context _has_ to
decide against it. If that's not your attention, you should make that
clear - not here, but in the code itself.
No, no sensible commercial person would worry about such a thing.
Successful businessmen have an instinctive feel for when rules can be bent.

(However MiniBasic has a special licence).

--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm

Oct 8 '08 #33
Malcolm McLean wrote, On 08/10/08 19:37:
>
"Richard Bos" <rl*@hoekstra-uitgeverij.nlwrote in message
>"Malcolm McLean" <re*******@btinternet.comwrote:
>><vi*******@gmail.comwrote in message news:
I want to know how to read image files in C.. what are the headers
that i should include? is there any tutorials regarding this ? pls
inform me.

Basic Algorithms includes chapters on BMP, GIF and JPEG formats. Code is
free to download.

And free to use? You have no license on your website that I can find, so
anyone thinking about using that code in a commercial context _has_ to
decide against it. If that's not your attention, you should make that
clear - not here, but in the code itself.
No, no sensible commercial person would worry about such a thing.
Hmm. So you are saying that no sensible commercial person has any
morals. Personally I think you are wrong and there are a lot of
commercial people who do have morals and are concerned with sticking to
licensing terms. There are also a lot who are too concerned about being
caught breaking the rules to break them.

Of course you could have just stated whether or not you permit use in a
commercial context.
Successful businessmen have an instinctive feel for when rules can be bent.
Better and more successful ones know when they don't need to be bent.
(However MiniBasic has a special licence).
By your argument that won't do you any good because business people will
ignore it.
--
Flash Gordon
If spamming me sent it to sm**@spam.causeway.com
If emailing me use my reply-to address
See the comp.lang.c Wiki hosted by me at http://clc-wiki.net/
Oct 8 '08 #34
"Malcolm McLean" <re*******@btinternet.comwrote:
"Richard Bos" <rl*@hoekstra-uitgeverij.nlwrote in message
"Malcolm McLean" <re*******@btinternet.comwrote:
<vi*******@gmail.comwrote in message news:
I want to know how to read image files in C.. what are the headers
that i should include? is there any tutorials regarding this ? pls
inform me.

Basic Algorithms includes chapters on BMP, GIF and JPEG formats. Code is
free to download.
And free to use? You have no license on your website that I can find, so
anyone thinking about using that code in a commercial context _has_ to
decide against it. If that's not your attention, you should make that
clear - not here, but in the code itself.
No, no sensible commercial person would worry about such a thing.
Successful businessmen have an instinctive feel for when rules can be bent.
It's successful businessmen like those who keep patent landsharks in the
big money.

Richard
Oct 9 '08 #35
On 8 Oct, 19:37, "Malcolm McLean" <regniz...@btinternet.comwrote:
"Richard Bos" <r...@hoekstra-uitgeverij.nlwrote in message
<snip>
And free to use? You have no license on your website that I can find, so
anyone thinking about using that code in a commercial context _has_ to
decide against it. If that's not your attention, you should make that
clear - not here, but in the code itself.

No, no sensible commercial person would worry about such a thing.
Successful businessmen have an instinctive feel for when rules can be bent.
I think you are mistaken. Deliberate copyright infringement
seems like a pretty bad idea. Never mind the morality
there's the possibility of being sued or at the least
some nasty publicity.

(However MiniBasic has a special licence).
--
Nick Keighley

Oct 9 '08 #36

"Flash Gordon" <sm**@spam.causeway.comwrote in message
Malcolm McLean wrote, On 08/10/08 19:37:
>Successful businessmen have an instinctive feel for when rules can be
bent.
>(However MiniBasic has a special licence).

By your argument that won't do you any good because business people will
ignore it.
No, successful business people also have an instintive feel for when rules
can't be bent. So MiniBasic has a licence that specifically permits passing
off the source code as your own, to cater for these people.

--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm

Oct 9 '08 #37

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Weston C | last post by:
I'm new to the GD/Image functions with PHP, and I'm trying to use them to manipulate jpeg images that I've stored in a MySQL database (specifically, creating thumbnails). The thing I can't tell...
13
by: PS | last post by:
I want to display the image from database to picture box through ado.net and vb.net I have some images present in a sql server 2000 table stored under 'image' datatype. I want to extract and...
0
by: Thomas | last post by:
Hi all, I'm in search of a fast solution to reading image dimensions. I know you can get the image dimensions by loading a file into an image object, and then reading the height/width...
3
by: Steve Tooke | last post by:
I'm trying to find a way to quickly read image headers (specifically jpgs at the moment) with out loading the whole image as an System.Imaging.Image. Anybody point me in the right direction or am I...
4
by: Andy | last post by:
Hello All: I have a field in the database that is an Image. I have no idea how the data is stored in here (Image, compressed, encrypted, plain text, etc). I am trying to write the contents to...
3
by: dale zhang | last post by:
Hi, I am trying to read an image from MS Access DB based on the following article: http://www.vbdotnetheaven.com/Code/Sept2003/2175.asp The article author is using PictureBox for windows...
4
by: dale zhang | last post by:
Hi, I am trying to save and read an image from MS Access DB based on the following article: http://www.vbdotnetheaven.com/Code/Sept2003/2175.asp Right now, I saved images without any...
2
by: Chucker | last post by:
Hi Community, I think I can store Binary Data in SQL Server but when I try to retrieve it, I always only get one byte. I think I stored my Binary Data in SQL Server in a Colum of Type Image....
3
by: anewbie | last post by:
hi. ive been searching for help with storing images in access. after much hunting i found this bit of code that Cor Ligthert put up on another forum. but when i try to update to the dataset, i...
2
by: Ed | last post by:
Hope someone can help me out... I have been tasked to read some image data from an sql database and save the files to flat files. OK, sounds easy as I'v used BLOBs before. But this is an old...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.