Does any one have a program or a means in which I could do this?
This is a two part question.
First.
I have an image box in my Dialog. But it only brings in a portion of the image that I am loading. My image in my Dialog has to be a set size.
Is it possible to bring in an entire picture and have it (Full Picture) displayed in my image box. So that the image is being displayed smaller than the actual image. (Resized, in a manner of speaking)
Second.
Some screen capture utilities have a box that you draw and/or resize to capture what of the picture you want.
Well if I can't do the first question, my second solution would be to have a picture capture utility (simplistic as possible) in my program.
One thought was using a Borderless Dialog (which I just saw an example of). Only the new border being a dotted line. Making the dialog transparent (except the border) So it could be positioned over an image that by clicking a button would capture the image outlined. Or something that does the basic idea. The capture box does not have to be resizable since the point is to fit the image selected, in a predefined space.
Hey. I'm NOT complicated! (Mostly)
Ok! Yes, I know I'm asking a lot in the second question, or am I?
This is beyond my programming ability at this time.
If you can, Please help.
And as always ALL suggustions are welcome. Even if you think you could only solve a portion, it could help someone else solve the rest. Or it might be just enough for another possibilities. So POST IT.
AND THANK YOU!!!
Screen Capture Utility
Moderators: Dorian (MJT support), JRL
Screen Capture Utility
Windows 7
PepsiHog. Yep! I drink LOTS of Pepsi (still..in 2024) AND enjoy programming. (That's my little piece of heaven!)
The immensity of the scope of possibilities within Macro Scheduler pushes the user beyond just macros!
PepsiHog. Yep! I drink LOTS of Pepsi (still..in 2024) AND enjoy programming. (That's my little piece of heaven!)
The immensity of the scope of possibilities within Macro Scheduler pushes the user beyond just macros!
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
There are a lot of screen capture utilities out there.
One that I have used for years is Hard Copy, for the operating systems:
Windows 98, Me, 2000, 2003, 2008, XP, Vista and Windows 7 (32+64 Bit).
Available for free at: http://www.gen.hardcopy.de/
SOME of the functions and features:
* Determine what you would like to select with the key and/or with the symbol:
o Example screen
o Example window
o Example rectangle
o Example part of a window
o Example menu under the mouse pointer
You determine as how you would like to process the selection:
+ To printings
+ Selecting the desired printer
+ Opening the Hardcopy - window
+ Call "Save as..."
+ Copy to the clipboard
+ Inserting into the current image
+ Request text for print after the image
+ Copy to WinWord (Also with supplementary text)
+ Copy to Excel
+ Copy to PowerPoint
+ Send with E-Mail
+ Inserting mouse pointers
+ Converting to gray levels
+ Monochrome convert
+ Black and white
+ Invert
+ Excluding the Taskbar from printing
+ Rotating the image automatically (Landscape)
+ Delete SAP R/3® background color
+ Delete a color (Background)
+ Executing a macro
+ Set the image size
+ Save automatically into a file (Also into a database)
+ Set the filename
You can use following filename variables:
# PC-name = :h
# User name = :u
# Date = :d
# Time = :t
# Window-title = :w
# Next number = :#
+ Determining the file-format:
# hcp (Windows Bitmap)
# bmp (Windows Bitmap)
# bmp (OS/2 Bitmap)
# cmp (Lead Bitmap)
# cur (Cursor)
# ico (Icon)
# jpg (Jpeg) (with storage of text)
# and so on
Please see: More graphics formats
In addition with the registered release:
# gif (Compuserve GIF)
+ Determining the color resulution:
# 1 bit of - 2 colours
# 2 bit of - 4 colours
# 3 bit of - 8 colours
# 4 bit of - 16 colours
# 5 bit of - 32 colours
# 6 bit of - 64 colours
# 7 bit of - 128 colours
# 8 bit of - 256 colours
# 16 bit of - 65.000 colours
# 24 bit of - 16.000.000 colours
# 32 bit of - 2.000.000.000 colours
The used graphics functions are licensed!
* You can store the window content in different file formats.
(During the storage in the bitmap format are required with True Color approx. 2.200 KB in the Gif format 10-60 KB.)
* You can print up to 20 Hardcopys onto one page (also time-controlled).
* You can reflect the window content with vertical or horizontal mirrors.
* You can rotate the window content to the left or to the right after.
* You can extend the window content or reduce the window content.
* You can edit the window content with another graphics program.
* You can insert one or more mouse pointers.
* You can adjust, whether a page count, Date + Time, PC name, or the user name is printed.
* You can adjust, whether you want to align the printout vertically or horizontally.
* You can set the margins.
* You can printout into monochrome (monochrome) or in gray levels.
* You can adjust to print out directly or use the function 'Save as...'
* You can adjust to use the standard printer or another printer.
* You can characterize the application by a text in the title line of the window.
* You can insert one or more mouse pointers into the image. (This is very advantageous for a documentation.) Example
* For the revision it is necessary that date and user name are also printed out.
(You can print also still supplementary SAP® information, look example.)
* You can store the Hardcopy also directly in a database. Example
This can be also your database of the SAP® system.
* You can printout in landscape format (also automatic, dependent on the size).
* You can determine the margins.
* You can delete automatically the background color with the printout.
* You can print out in monochrome.
* You can use the standard-printer or any other printer. (For example "normal" prints from WinWord, etc. to the standard printer and prints from SAP R/3® to a network printer.)
You can make this dependent on the pressed key.
* You can use Hardcopy with all Windows systems!
* Every screen / every window can be send by E-Mail.
(Example: Send a error message directly to a helpdesk.)
* An image can be inserted directly to WinWord/Excel.
============================
Many more features available.....just my recommendation, many other products to choose from.
One that I have used for years is Hard Copy, for the operating systems:
Windows 98, Me, 2000, 2003, 2008, XP, Vista and Windows 7 (32+64 Bit).
Available for free at: http://www.gen.hardcopy.de/
SOME of the functions and features:
* Determine what you would like to select with the key and/or with the symbol:
o Example screen
o Example window
o Example rectangle
o Example part of a window
o Example menu under the mouse pointer
You determine as how you would like to process the selection:
+ To printings
+ Selecting the desired printer
+ Opening the Hardcopy - window
+ Call "Save as..."
+ Copy to the clipboard
+ Inserting into the current image
+ Request text for print after the image
+ Copy to WinWord (Also with supplementary text)
+ Copy to Excel
+ Copy to PowerPoint
+ Send with E-Mail
+ Inserting mouse pointers
+ Converting to gray levels
+ Monochrome convert
+ Black and white
+ Invert
+ Excluding the Taskbar from printing
+ Rotating the image automatically (Landscape)
+ Delete SAP R/3® background color
+ Delete a color (Background)
+ Executing a macro
+ Set the image size
+ Save automatically into a file (Also into a database)
+ Set the filename
You can use following filename variables:
# PC-name = :h
# User name = :u
# Date = :d
# Time = :t
# Window-title = :w
# Next number = :#
+ Determining the file-format:
# hcp (Windows Bitmap)
# bmp (Windows Bitmap)
# bmp (OS/2 Bitmap)
# cmp (Lead Bitmap)
# cur (Cursor)
# ico (Icon)
# jpg (Jpeg) (with storage of text)
# and so on
Please see: More graphics formats
In addition with the registered release:
# gif (Compuserve GIF)
+ Determining the color resulution:
# 1 bit of - 2 colours
# 2 bit of - 4 colours
# 3 bit of - 8 colours
# 4 bit of - 16 colours
# 5 bit of - 32 colours
# 6 bit of - 64 colours
# 7 bit of - 128 colours
# 8 bit of - 256 colours
# 16 bit of - 65.000 colours
# 24 bit of - 16.000.000 colours
# 32 bit of - 2.000.000.000 colours
The used graphics functions are licensed!
* You can store the window content in different file formats.
(During the storage in the bitmap format are required with True Color approx. 2.200 KB in the Gif format 10-60 KB.)
* You can print up to 20 Hardcopys onto one page (also time-controlled).
* You can reflect the window content with vertical or horizontal mirrors.
* You can rotate the window content to the left or to the right after.
* You can extend the window content or reduce the window content.
* You can edit the window content with another graphics program.
* You can insert one or more mouse pointers.
* You can adjust, whether a page count, Date + Time, PC name, or the user name is printed.
* You can adjust, whether you want to align the printout vertically or horizontally.
* You can set the margins.
* You can printout into monochrome (monochrome) or in gray levels.
* You can adjust to print out directly or use the function 'Save as...'
* You can adjust to use the standard printer or another printer.
* You can characterize the application by a text in the title line of the window.
* You can insert one or more mouse pointers into the image. (This is very advantageous for a documentation.) Example
* For the revision it is necessary that date and user name are also printed out.
(You can print also still supplementary SAP® information, look example.)
* You can store the Hardcopy also directly in a database. Example
This can be also your database of the SAP® system.
* You can printout in landscape format (also automatic, dependent on the size).
* You can determine the margins.
* You can delete automatically the background color with the printout.
* You can print out in monochrome.
* You can use the standard-printer or any other printer. (For example "normal" prints from WinWord, etc. to the standard printer and prints from SAP R/3® to a network printer.)
You can make this dependent on the pressed key.
* You can use Hardcopy with all Windows systems!
* Every screen / every window can be send by E-Mail.
(Example: Send a error message directly to a helpdesk.)
* An image can be inserted directly to WinWord/Excel.
============================
Many more features available.....just my recommendation, many other products to choose from.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
Here's a sample of using the Windows StretchBlt API function to resize an image. Pick "Process" and the earth image will shrink to half size and display on the empty dialog.
Edit: the earth image data wouldn't transfer from the forum properly so I changed this so you select a jpg or bmp file to display then shrink.
Edit: the earth image data wouldn't transfer from the forum properly so I changed this so you select a jpg or bmp file to display then shrink.
Code: Select all
Input>image,Select a jpg or bmp file to display then resize
If>image=
Exit>0
EndIf
Dialog>Dialog1
Caption=From
Width=410
Height=490
Top=20
Left=26
Image=%image%,0,0,400,400,,0
Button=Process,166,434,75,25,3
EndDialog>Dialog1
Dialog>Dialog3
Caption=To
Width=410
Height=440
Top=20
Left=500
EndDialog>Dialog3
Show>Dialog1
Show>Dialog3
LibFunc>user32,GetDC,HDC1,Dialog1.handle
LibFunc>user32,GetDC,HDC3,Dialog3.handle
Label>Loop
GetDialogAction>Dialog1,res1
GetDialogAction>Dialog3,res3
If>res1=2
Exit>0
EndIf
If>res3=2
Exit>0
EndIf
If>res1=3
GoSub>Process
EndIf
Wait>0.01
Goto>Loop
SRT>Process
LibFunc>Gdi32,StretchBlt,SBres,HDC3,0,0,200,200,HDC1,0,0,400,400,13369376
ResetDialogAction>dialog1
END>Process