I have forgotten
my Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com

create thumbnail

This code is a demo, of this site's code submission feature, which I am using in a job interview
Controller: vince

Private project under development, to help contact the author: Contact Controller

Interface

C++

Overview

This file contains the various definitions and functions which are needed to resize an image using the local system's installation of ImageMagick.

Dump

 
voiddumpstringmapm )

Parameters

mthe data structure which we would like to inspect

Authors

Vince Cole (June 2009)
Source Code

This module is private, for owner's use only.

Not a member, then Register with CodeCogs. Already a Member, then Login.


Strip Text Delims

 
voidstrip_text_delimsconst string*line )
cuts out all occurrences of the text delimiter, defined as the constant TEXT_DELIM, from the given string and returns it by reference

Parameters

linethe string we want to modify

Authors

Vince Cole (June 2009)
Source Code

This module is private, for owner's use only.

Not a member, then Register with CodeCogs. Already a Member, then Login.


Read Item Key

 
voidread_item_keyconst string*item
const string*key
const stringmap*m )

Parameters

itemthe item we want the value of
keythe key to use
ma structure into which we'll save the data

Authors

Vince Cole (June 2009)
Source Code

This module is private, for owner's use only.

Not a member, then Register with CodeCogs. Already a Member, then Login.


Read Item Val

 
voidread_item_valconst string*item
const string*key
const intidx
const stringmap*m )

Parameters

itemthe item we want the value of
keywhich key to use
idxwhat index to access the array of stringset
mthe data structure which to save the result to

Authors

Vince Cole (June 2009)
Source Code

This module is private, for owner's use only.

Not a member, then Register with CodeCogs. Already a Member, then Login.


Read Line

 
voidread_lineconst string*line
const stringmap*m )

Parameters

linethe line of text containing the data to parse
mthe data structure which to save the result to

Authors

Vince Cole (June 2009)
Source Code

This module is private, for owner's use only.

Not a member, then Register with CodeCogs. Already a Member, then Login.


Read Mfg Thumb Sizes

 
voidread_mfg_thumb_sizesconst char*filename
const stringmap*m )

Parameters

filenamethe file containing the data
mthe data structure which to save the result to

Authors

Vince Cole (June 2009)
Source Code

This module is private, for owner's use only.

Not a member, then Register with CodeCogs. Already a Member, then Login.


Main

 
intmainintargc
const char**argv )
this program accepts input from the command line, for resizing an image, and resizes it

Parameters

argcthe command line argument count
argvthe command line argument values

Returns

program success/failure status

Authors

Vince Cole (June 2009)
Source Code

This module is private, for owner's use only.

Not a member, then Register with CodeCogs. Already a Member, then Login.