- 537 名前:仕様書無しさん mailto:sage [2007/02/03(土) 01:55:46 ]
- >>535
--- ■[program]画像処理 10:50 たまには C でなんか書いてみようかと思って書いてみた。頭腐りそうなので… #define MAXTEXT 1024 extern int Width; extern int Height; void WriteHiddenText( unsigned char* ptr ) { unsigned char Bit2; unsigned long Color; int x, y, cnt, index = 0; Cnt = strlen( ptr ) + 1; for( y = 0; y < Height; y++ ) { for( x = 0; x < Width; x++ ) { Color = GetPixel( x, y ); Color &= 0xfffffc; Bit2 = *ptr; Bit2 >>= ( 6 -index * 2 ); /* 文字データ( 8 bit )をシフト */ Bit2 &= 0x3; Color |= Bit2; --- つつく
|

|