![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Oct 2004
Posts: 15
Rep Power: 0
![]() |
hi ppl
i want to ask about how to write to a bmp file by c++ that is bmp files begin with header so if i want to write bmp file by c++ i must write the header before writing data so any one can help me plz????? ........................................... another question plz any one can help me about inverse cosine transform code for jpeg compresion thnx |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Apr 2005
Posts: 22
Rep Power: 0
![]() |
google bmp fileformat it will give you enought info. If you want add C++ you might find the exact structures for the header.(I was searching for this yesterday this but I don't remember where I found the info.Defently you will find info here but they are not very helpful if you are new at programming;better google
)Last edited by Daniel_kd; Apr 21st, 2005 at 8:41 PM. |
|
|
|
|
|
#3 |
|
Professional Programmer
|
There are many image libraries you can download using the update feature of Dev-C++, as well.
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;} |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|