Groups > Application developers > Photoshop SDK > Re: How to read and write the image data




How to read and write the image data
=?ISO-8859-1?Q?=91?=void

How to read and write the image data =?ISO-8859-1?Q?=91?=void
Thu, 20 Mar 2008 22:19:03 -070
Post Reply
Re: How to read and write the image data
Sat, 22 Mar 2008 08:17:42 -070
Use a cast, or assign to a pointer with your desired type.

For a large number of examples, see my source code at
<http://telegraphics.com.au/sw/>

E.g., usage of inData in simple filters such as
<https://www.telegraphics.com.au/fisheye/browse/12bits/trunk/main.c?r=12#l248
>

Post Reply
Re: How to read and write the image data
Wed, 26 Mar 2008 19:07:04 -070
Thanks for you help.Could you explain it more particular?
Now my code is like this:
-------------------------------------------
FILE *fp;
fp=fopen("C:\\h.bmp","w+r");
fseek(fp, 55, SEEK_SET);
fwrite((unsigned char*)gStuff->inData, 1, gStuff->bigDocumentData->
wholeSize32.v * gStuff->bigDocumentData->wholeSize32.h *
gStuff->planes, fp);
fclose(fp);

-------------------------------------------
Why the image data saved is disordered?
Post Reply
about | contact