C中的图像文件 [英] Image file in C
问题描述
您好,我想知道如何在C中生成图像文件。我想
在图片顶部画一条线(png或JPG),但我不知道我知道从哪里开始b
。有什么帮助吗?
Hello, I am trying to know how I can generate an image file in C. I want to
draw a line on top of a picture (png or JPG), but I don''t know where to
start. Any help?
推荐答案
Afifov< af **** @ yahoo.com>写道:
Afifov <af****@yahoo.com> wrote:
您好,我想知道如何在C中生成图像文件。我想在图片顶部画一条线(png或JPG),但是我不知道从哪里开始。任何帮助?
Hello, I am trying to know how I can generate an image file in C. I want to
draw a line on top of a picture (png or JPG), but I don''t know where to
start. Any help?
这不是一个关于C语言本身的问题,因此严格说来这个组中的非主题演讲。
在大多数平台上,您可以使用gd库来执行这种魔术,
您可以使用google或on:< http找到所有相关内容://www.boutell.com/gd/> ;.
- Philip
-
Philip Paeps请不要通过电子邮件发送任何回复
ph****@paeps.cx 我关注新闻组。
BOFH借口#186:
权限被拒绝
This is not really a question about the C language itself and hence strictly
speaking off-topic in this group.
On most platforms, you can use the gd library to perform this sort of magic,
you can find all about it using google or on: <http://www.boutell.com/gd/>.
- Philip
--
Philip Paeps Please don''t email any replies
ph****@paeps.cx I follow the newsgroup.
BOFH Excuse #186:
permission denied
我不想使用任何库。我知道gd和libpng。这是
不是主题因为我正在寻找定义png
文件的C结构及其绘制方式。我想要的只是拍摄一张图片并在其上画一条线。但是我想知道矩阵的结构。
无论如何,你的回复都被注意到了。 Thx
I dont want to use any libraries. I know about the gd, and libpng. This is
not off topic because i am looking for the C struct that defines a png
file and how it is drawn. All i want to do is just take an image and draw
a line over it. But i want to know the struct of the matrix.
Anyway, your reply was noted. Thx
On Mon,01 Aug 2005 06:27:11 -0400,Afifov写道:
On Mon, 01 Aug 2005 06:27:11 -0400, Afifov wrote:
I不想使用任何库。我知道gd和libpng。这不是主题,因为我正在寻找定义png
文件的C结构及其绘制方式。
问题是C语言没有定义与png
文件相关的任何内容。另外,不可能有单个结构定义
与png文件相关,因为结构的布局和单个字段的
表示可能来自一个C实现
另一个。
我想做的只是拍摄一张图片并画上一条线。但是我想知道矩阵的结构。
无论如何,你的回复都被注意到了。 Thx
I dont want to use any libraries. I know about the gd, and libpng. This is
not off topic because i am looking for the C struct that defines a png
file and how it is drawn.
The problem is that the C language doesn''t define anything related to png
files. Also there is unlikely to be a single struct definition that
relates to a png file because the layout of a structure and the
representation of individual fields can cary from one C implementation to
another.
All i want to do is just take an image and draw
a line over it. But i want to know the struct of the matrix.
Anyway, your reply was noted. Thx
您可能需要读取png文件的代码并将其转换为
相应的内部表示形式,当您''已完成的代码
重新编码您的内部表示并将其写入文件。在
中间,您将需要代码来绘制一条线。这是讨论所有
的好地方。这可能是comp.graphics.algorithms。
劳伦斯
You will probably need code that reads in a png file and converts it to an
appropriate internal representation, and when you''ve finished code that
reencodes your internal representation and writes it to a file. In the
middle you will need code to draw a line. A good place to discuss all of
this might be comp.graphics.algorithms.
Lawrence
这篇关于C中的图像文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!