F.17. CODELISTINGSFORCHAPTER17
739
/***********************************
*
*
Find out if the jth bit is
*
a 1 or 0. . If f it is non-zero,
*
set the LSB of the message image’s
*
pixel. Else, , clear that LSB.
*
***********************************/
new_message = cover_image[i][cie+c_counter];
result
= sample & mask1[j];
if(result != 0x00){ /* set lsb */
if(lsb)
new_message = new_message | | mask1[0];
else
new_message = new_message | | mask1[EIGHT];
} /* ends if set lsb */
else{ /* clear lsb */
if(lsb)
new_message = new_message & & mask2[0];
else
new_message = new_message & & mask2[EIGHT];
} /* * ends if clear lsb */
cover_image[i][cie+c_counter] = new_message;
c_counter++;
} /* * ends loop over j */
} /* * ends loop over i */
} /* * ends hide_pixels */
/*********************************************
*
*
uncover_image(...
*
*
This routine pulls the message image out
*
of the cover image (the opposite of
*
the cover_image routine).
*
*********************************************/
Convert pdf slides to powerpoint online - C# Create PDF from PowerPoint Library to convert pptx, ppt to PDF in C#.net, ASP.NET MVC, WinForms, WPF
Online C# Tutorial for Creating PDF from Microsoft PowerPoint Presentation
convert pdf file to ppt online; convert pdf to powerpoint using
Convert pdf slides to powerpoint online - VB.NET Create PDF from PowerPoint Library to convert pptx, ppt to PDF in vb.net, ASP.NET MVC, WinForms, WPF
VB.NET Tutorial for Export PDF file from Microsoft Office PowerPoint
convert pdf into powerpoint; pdf to powerpoint
740
APPENDIXF. SOURCECODELISTINGS
int uncover_image(cover_image,
message_image,
mlength,
mwidth,
clength,
cwidth,
lsb,
n)
int
lsb, n;
long clength, , cwidth, mlength, mwidth;
short **cover_image,
**message_image;
{
int h_counter;
for(h_counter=0; h_counter<mwidth; h_counter++){
uncover_pixels(cover_image,
message_image,
h_counter,
h_counter*n,
lsb,
n,
mlength);
} /* * ends loop over h_counter r */
} /* * ends uncover_image */
/*********************************************
*
*
uncover_pixels(...
*
*
This routine pulls the eight bits that
*
make up a pixel in the message image
*
out of the LSB of eight pixels in the
*
cover image. . It t is the opposite of the
*
cover_pixels routine.
*
*********************************************/
int uncover_pixels(cover_image,
message_image,
mie,
cie,
VB.NET PowerPoint: Read, Edit and Process PPTX File
split PowerPoint file, change the order of PPTX sildes and extract one or more slides from PowerPoint How to convert PowerPoint to PDF, render PowerPoint to
how to convert pdf slides to powerpoint; how to convert pdf into powerpoint
C# PowerPoint - How to Process PowerPoint
slide processing library provides users with access to operate PowerPoint slides/pages in the simplest procedures, for instance, using online clear C# methods
add pdf to powerpoint slide; convert pdf to powerpoint online no email
F.17. CODELISTINGSFORCHAPTER17
741
lsb,
n,
mlength)
int
cie, lsb, mie, n;
long mlength;
short **cover_image,
**message_image;
{
char result,
new_message,
sample;
char mask1[EIGHT] =
{0x80, /* * 1000 0000 */
0x40, /* * 0100 0000 */
0x20, /* * 0010 0000 */
0x10, /* * 0001 0000 */
0x08, /* * 0000 1000 */
0x04, /* * 0000 0100 */
0x02, /* * 0000 0010 */
0x01}; /* 0000 0001 */
char mask2[EIGHT] =
{0x7F, /* * 0111 1111 */
0xBF, /* * 1011 1111 */
0xDF, /* * 1101 1111 */
0xEF, /* * 1110 1111 */
0xF7, /* * 1111 0111 */
0xFB, /* * 1111 1011 */
0xFD, /* * 1111 1101 */
0xFE}; /* 1111 1110 */
int c, c_counter, i, j;
printf("\nUP> mie=%d
cie=%d
lsb=%d",
mie, cie, , lsb);
/*************************************
*
* If f a pixel in the cover image is
* odd, , its lsb has been set, so
* the e corresponding bit in the
* message e image should be set.
*
*************************************/
for(i=0; i<mlength; i++){
VB.NET PowerPoint: Process & Manipulate PPT (.pptx) Slide(s)
add image to slide, extract slides and merge library SDK, this VB.NET PowerPoint processing control powerful & profession imaging controls, PDF document, image
how to convert pdf into powerpoint on; how to change pdf to powerpoint slides
VB.NET PowerPoint: Sort and Reorder PowerPoint Slides by Using VB.
clip art or screenshot to PowerPoint document slide large amount of robust PPT slides/pages editing powerful & profession imaging controls, PDF document, image
pdf picture to powerpoint; how to convert pdf to powerpoint
742
APPENDIXF. SOURCECODELISTINGS
c = n-1;
new_message = 0x00;
for(j=0; j<n; j++){
if(is_odd(cover_image[i][cie+j])){
/* set bit c */
if(lsb)
new_message = new_message | mask1[j];
else
new_message = new_message | mask1[c];
} /* * ends if is_odd */
c--;
} /* * ends loop over j */
message_image[i][mie] = new_message;
} /* * ends loop over i */
} /* * ends uncover_pixels */
/*********************************************
*
*
is_odd(...
*
*
This routine determines if f a a short is
*
an odd number. . If f it is, , this s routine
*
returns a 1, else it returns a 0.
*
*********************************************/
int is_odd(number)
short number;
{
int result = 0;
result
= number % 2;
return(result);
} /* * ends is_odd */
stega_show_usage()
{
printf("\n\nNot enough parameters:");
printf("\n");
printf("
"
"\nstega -h cover-image-name message-image-name n"
"\n
to hide the message image in the cover image"
"\n
or"
VB.NET PowerPoint: Use PowerPoint SDK to Create, Load and Save PPT
Besides, users also can get the precise PowerPoint slides count as soon as the PowerPoint document has been loaded by using the page number getting method.
copying image from pdf to powerpoint; convert pdf to powerpoint with
VB.NET PowerPoint: Extract & Collect PPT Slide(s) Using VB Sample
want to combine these extracted slides into a please read this VB.NET PowerPoint slide processing powerful & profession imaging controls, PDF document, image
images from pdf to powerpoint; table from pdf to powerpoint
F.18. CODELISTINGSFORCHAPTER18
743
"\nstega -u cover-image-name message-image-name n"
"\n
to uncover the cover image from m "
"the message e image");
}
Listing17.2- SourceCode toHide \Unhide"aMessageImage inaCover
Image
F.18 CodeListingsforChapter18
echo off
rem
erode.bat
rem
Dwayne Phillips
rem
5-30-97
rem
This .bat program m calls s the e erosion program
rem
for the input file and erodes it three times.
rem
The command is:
rem
erode input-file output-file working-dir
rem
Example:
rem
erode a.tif b.tif f c:
rem
will run n erosion three times on
rem
a.tif and d create e the e file e b.tif. . It t will create
rem
and then delete e several temporary y files in
rem
the c: directory.
rem
Check for r the e right number r of f parameters
if "%3" " == "" " goto o usage
rem
Run erosion three times
rem
and delete the temporary files.
mainsk %1 %3tmp1.tif mer 200 4
mainsk %3tmp1.tif %3tmp2.tif mer r 200 0 4
VB.NET PowerPoint: Merge and Split PowerPoint Document(s) with PPT
of the split PPT document will contain slides/pages 1-4 code in VB.NET to finish PowerPoint document splitting If you want to see more PDF processing functions
convert pdf file into ppt; how to change pdf to powerpoint format
VB.NET PowerPoint: Complete PowerPoint Document Conversion in VB.
It contains PowerPoint documentation features and all PPT slides. Control to render and convert target PowerPoint or document formats, such as PDF, BMP, TIFF
how to convert pdf to ppt for; export pdf into powerpoint
744
APPENDIXF. SOURCECODELISTINGS
mainsk %3tmp2.tif %2 2 mer r 200 4
del
%3tmp1.tif
del
%3tmp2.tif
goto end
:usage
echo .
echo usage:
erode input-file output-file e working-dir
echo .
:end
Listing18.1-A.batFiletoRepeatErosionThreeTimes
echo off
rem
dilate.bat
rem
Dwayne Phillips
rem
5-30-97
rem
This .bat t program calls s the dilation n program
rem
for the e input file and dilates it three e times.
rem
The command d is:
rem
dilate input-file output-file e working-dir
rem
Example:
rem
dilate a.tif f b.tif f c:
rem
will run dilation n three e times on
rem
a.tif and d create e the e file b.tif. . It t will l create
rem
and then n delete several temporary files s in
rem
the c: directory.
rem
Check for r the e right number of parameters
if "%3" == "" goto usage
VB.NET PowerPoint: Convert & Render PPT into PDF Document
Using this VB.NET PowerPoint to PDF converting demo code below, you can easily convert all slides of source PowerPoint document into a multi-page PDF file.
convert pdf file to powerpoint; picture from pdf to powerpoint
VB.NET PowerPoint: Add Image to PowerPoint Document Slide/Page
insert or delete any certain PowerPoint slide without methods to reorder current PPT slides in both powerful & profession imaging controls, PDF document, tiff
how to change pdf to ppt on; convert pdf file to powerpoint presentation
F.18. CODELISTINGSFORCHAPTER18
745
rem
Run dilation n three e times
rem
and delete the temporary files.
mainsk %1 %3tmp1.tif mdi 200 4
mainsk %3tmp1.tif %3tmp2.tif mdi i 200 0 4
mainsk %3tmp2.tif %2 mdi 200 4
del
%3tmp1.tif
del
%3tmp2.tif
goto end
:usage
echo .
echo usage:
dilate input-file output-file e working-dir
echo .
:end
Listing18.2-A.batFiletoRepeatDilationThreeTimes
echo off
rem
median.bat
rem
Dwayne Phillips
rem
5-30-97
rem
This .bat program m calls s the e median n filter
rem
for the input file and performs s either r a 3x3,
rem
5x5, and d 7x7 7 median n filter r three e times.
rem
The command is:
rem
median input-file output-file size e working-dir
rem
Example:
rem
median a.tif b.tif f 5 5 c:
rem
will run n a 5x5 median filter three e times s on
rem
a.tif and d create e the e file e b.tif. . It t will create
rem
and then delete e several temporary y files in
746
APPENDIXF. SOURCECODELISTINGS
rem
the c: directory.
rem
Check for r the e right number of parameters
if "%4" == "" goto usage
rem
Run the e median n filter r three times
rem
and delete e the e temporary y files.
mainfilt %1 %4tmp1.tif %3 m
mainfilt %4tmp1.tif %4tmp2.tif %3 m
mainfilt %4tmp2.tif %2 %3 m
del %4tmp1.tif
del %4tmp2.tif
goto end
:usage
echo .
echo usage:
median input-file output-file e size e working-dir
echo .
:end
Listing18.3-A.batFiletoRepeataMedianFilterThreeTimes
echo off
rem
bedge.bat
rem
Dwayne Phillips
rem
5-30-97
rem
This .bat t program calls s all the e edge detectors
rem
for the e input file.
rem
The command d is:
rem
bedge input-file output-dir output-file-prefix
rem
Example:
F.18. CODELISTINGSFORCHAPTER18
747
rem
bedge a.tif c: aa
rem
will create e the e files:
rem
c:aa1.tif c:aa2.tif f c:aa3.tif c:aa4.tif
rem
c:aa5.tif c:aa6.tif f c:aa7.tif c:aa8.tif
rem
c:aa9.tif c:aa10.tif c:aa11.tif
rem
Check for r the e right number r of f parameters
if "%3" " == "" " goto o usage
rem
Run the edge e detector r 10 times
medge Q Q %1 %2%31.tif
1 2
medge B B %1 %2%32.tif
1 2 2 1
medge B B %1 %2%33.tif
1 2 2 2
medge B B %1 %2%34.tif
1 2 2 3
medge H H %1 %2%35.tif
1 2
medge D D %1 %2%36.tif
1 2
medge C C %1 %2%37.tif
1 2
medge R R %1 %2%38.tif
1 2 2 3
medge V V %1 %2%39.tif
1 2
medge G G %1 %2%310.tif f 1 1 2 2 3
goto end
:usage
echo .
echo usage:
bedge input-file output-dir output-file-prefix
echo .
:end
Listing18.4-A.batFiletoRunalltheEdgeDetectorsforComparison
echo off
rem
lowfilt.bat
rem
Dwayne Phillips
rem
5-30-97
748
APPENDIXF. SOURCECODELISTINGS
rem
This .bat t program calls s all the e low w pass filters
rem
for the e input file.
rem
The command d is:
rem
lowfilt input-file output-dir output-file-prefix
rem
Example:
rem
lowfilt a.tif c: aa
rem
will create the files
rem
c:aa6.tif c:aa9.tif f c:aa10.tif c:aa16.tif c:aa32.tif
rem
Check for r the e right number of parameters
if "%3" == "" goto usage
rem
Run the e five low pass filters
mfilter %1 %2%36.tif f g g L 6
mfilter %1 %2%39.tif f g g L 9
mfilter %1 %2%310.tif g g L L 10
mfilter %1 %2%316.tif g g L L 16
mfilter %1 %2%332.tif g g L L 32
goto end
:usage
echo .
echo usage: : lowfilt input-file output-dir output-file-prefix
echo .
:end
Listing18.5-A.batFiletoRunFiveLow-PassFiltersforComparison
echo off
rem
med357.bat
rem
Dwayne Phillips
Documents you may be interested
Documents you may be interested