Display a portion of a jpg image
$30-100 USD
Paid on delivery
I need two vb6 subroutines (yes, must be Visual Basic Version 6)
******************************************************************************
1. Call GetPortionOfPage
(ImageIn,ImageOut,X,Y,Width,Height,ReturnCode)
example:Call GetPortionOfPage("d:\scanned\[url removed, login to view]","d:\scanned\temp\[url removed, login to view]",2,3,4.5,4)
******************************************************************************
2. Call DisplayImage(ImageIn,Top,Left,Width,Height,ReturnCode)
ImageIn=filename of an image in jpg format.
example: c:\temp\[url removed, login to view]
## Deliverables
I need two vb6 subroutines (yes, must be Visual Basic Version 6)
******************************************************************************
1. Call GetPortionOfPage(ImageIn,ImageOut,X,Y,Width,Height,ReturnCode)
******************************************************************************
example:Call GetPortionOfPage("d:\scanned\[url removed, login to view]","d:\scanned\temp\[url removed, login to view]",2,3,4.5,4)
ImageIn=filename of a scanned image of one sheet of paper 8.5 x 11 inch in jpg format.
example: [\\server\data\[url removed, login to view]][1]
? ? ? ? ? ? ? ? c:\scanned data\[url removed, login to view]
ImageOut=filename of out image.
? ? ? c:\temp\[url removed, login to view]
X = number of decimal inches from the top of the image down
Y = number of decimal inches from the left edge of the image over toward the right
Width = the decimal width of the sub image in inches
Height = the decimal height of the sub image in inches
Units=Inches
ReturnCode = for the routine to return any error codes or any other codes
the routine wishes to communicate back to the calling routine
the portion of the image will have the same resolution, and proportional to
that of the orginal image
If the calling x,y is out of bound then obviously you cannot return any image.
If the calling width is out of bound then treat it as if the width go to the
right edge of the original image.
If the calling Heigh is out of bound then treat if as if the height to to the
bottom edge of the original image.
******************************************************************************
2. Call DisplayImage(ImageIn,Top,Left,Width,Height,ReturnCode)
******************************************************************************
ImageIn=filename of an image in jpg format.
example: c:\temp\[url removed, login to view]
Top? ? = Top of window where image is to be displayed
Left? = Left edge of window where image is to be displayed
Width = Width of window where image is to be displayed
Height= Height of window where image is to be displayed
Units=Inches
ReturnCode = for the routine to return any error codes or any other codes
the routine wishes to communicate back to the calling routine
Task:Open window with top left corner at TOP and LEFT. Set window width to
WIDTH and set window height to? HEIGHT. Load picture and resize picture to
fit by the width of the window.
If the height of the image to too long then put a vertical scroll bar. If the
height of the image is shorter than the height of the window then fill the
empty area of the window with a FILLER COLOR.
You would never need a horizontal scroll bar
because you always resize the width of the picture to that of the window.
Always keep the original image proportion.
Project ID: #3964817