March 14, 2007 at 12:35 am #22105
I’ve got TWAIN working wonderfully for capturing still images from a web cam. The one task I just can’t figure out is how to clear the previously captured images. I’m sure there is a simple answer to this but I can’t find it.
Any help would be greatly appreciated.April 29, 2007 at 2:05 pm #23639
clear from where?April 30, 2007 at 1:53 pm #23640
When the capture dialog is shown, there is a list of the previously captured images on the right and the live cam on the left. New captures are added to the list on the right.
I would like to clear the list on the right but haven’t figured out how to.April 30, 2007 at 1:56 pm #23641
in what capture dialog? … is this in windows or in an application? if it is in an app, what is the name of the app?April 30, 2007 at 4:24 pm #23642
I’m using Win XP and the capture dialog which is provided by the TWAIN_32.DLLApril 30, 2007 at 9:06 pm #23643
not trying to sound stupid here (apparently I can’t help it) but, you’re asking how to clear the image from a windows xp dialog. If I remember, there are 2 or 3 ways to get an image on screen with windows xp. walk us thru how you’re doin it.May 1, 2007 at 1:26 pm #23644
I followed the example given by Jeff Friesen. This can be found at: http://today.java.net/pub/a/today/2005/01/25/twain.html
The sample code is pretty much what I used.
Is there a better way to aquire an image?May 1, 2007 at 8:17 pm #23645
am I reading the wrong article or that an article on using java library named JTwain? I thought you wrote that you were using twain_32 to talk to the device? I must have misunderstood where you wrote that the dialog was provided by twain_32, the article I just read describes removing all of the windows dialogs.
Are you using winXp or are you using a java app and using JTwain?May 1, 2007 at 8:45 pm #23646
If you dig into the actual source provided with the article, JTwain makes it’s calls to jtwain.dll, which in effect loads and provides a JNI interface to twain_32.dll.
Do you use the twain_32.dll and it’s dialogs or not?May 2, 2007 at 7:30 am #23647
Yes, I use twain_32. And I occationally use the dialog (I only think one dialog exists) to select the source, but I’m unaware of a dialog within twian_32 that displays an image. If a dialog exists in twain_32 to display an image I’m almost certain that it isn’t documented as a part of the twain spec, but I’ve been wrong before. What call are you making to produce the dialog? Or point me to the part of the twain spec that describes this dialog. Are you certain that the dialog you’re speaking of isn’t a part of JTWAIN? the quote “And the Windows dialog boxes are no more” from that article seems to me to be an indication.May 2, 2007 at 2:37 pm #23648
I believe the Windows dialog boxes referred to are those used to select the source and it’s settings and the box provided by the device. In his earlier example, he created Windows dialog boxes within his dll instead of using the one provided by the twain_32.dll. I’m using Jeff’s code so I’m pretty sure the generic acquire dialog is to be shown. Here’s a clip from the acquire method which shows the dialog:
#include "twain.h" // Standard TWAIN header.
// Prepare to enable the currently open data source. Make sure to NOT show
// the data source's own user interface (dialog box).
ui.ShowUI = FALSE;
ui.ModalUI = FALSE;
ui.hParent = 0;
// Enable the currently open data source.
g_rc = (*g_pDSM_Entry) (&g_AppID,
// If default data source could not be enabled, throw exception. Because
// the exception is not actually thrown until execution returns to Java, we
// first exit current block to close data source, close data source
// manager and destroy the previously-created window.
if (rc != TWRC_SUCCESS)
throwJTE (env, "Unable to enable default data source (_acquire)");
This displays a generic dialog box and not the fancy one from Logitech (the camera’s brand I’m using) I get when I use the web cam alone. Are you saying that this generic dialog is also provided by the manufacturer and not twain_32.dll?
Did you write your own acquisition dialog?May 2, 2007 at 4:13 pm #23649
No, I’m saying the generic dialog you’re talking about is provided by Jeff and not twain_32.dll.
There is only one dialog box in the twain_32.dll – the select source one.
The config dialogs are provided by the vendors ( they don’t live in twain_32.dll )
There is no standard ‘aquire dialog’ (there is no spoon) there are just dialogs created by people for displaying results in their app or libraries.
When I want to display images I display them in windows that I coded.May 2, 2007 at 7:02 pm #23650
I really think you are wrong in that the dll doesn’t provide the dialog. The code snippit is the point at which the dialog is shown. If you have every tried the implementations provided by Asprise or Morena Studio then same dialog box is displayed. It’s obvious that you haven’t used this dialog or had this problem so I don’t think you can answer my original question.May 2, 2007 at 9:11 pm #23651
That could be, I’ve been wrong before. But I know what EnableDs does. EnableDs does not produce a dialog from within twain_32, it signals the driver to either scan or show the vendor Ui. And part where you set ShowUi= False – that is the part where you are telling twain_32.dll to scan and where you’re requesting (not telling, just requesting) the driver to not show it’s Ui.
From 7-224 of the twain spec found here :
This operation causes three responses in the Source:
• Places the Source into a “ready to acquire” condition. If the application raises the
Source’s user interface (see #2, below), the Source will wait to assert MSG_XFERREADY
until the “GO” button in its user interface or on the device is clicked. If the application
bypasses the Source’s user interface, this operation causes the Source to become
immediately “armed”. That is, the Source should assert MSG_XFERREADY as soon as it
has data to transfer.
• The application can choose to raise the Source’s built-in user interface, or not, using this
operation. The application signals the Source’s user interface should be displayed by
setting pUserInterface->ShowUI to TRUE. If the application does not want the Source’s
user interface to be displayed, or wants to replace the Source’s user interface with one of
its own, it sets pUserInterface->ShowUI to FALSE. If activated, the Source’s user
interface will remain displayed until it is closed by the user or explicitly disabled by the
application (see Note).
• Terminates Source’s acceptance of “set capability” requests from the application.
Capabilities can only be negotiated in State 4 (unless special arrangements are made
using the CAP_EXTENDEDCAPS
Keep reading his code (or the twain spec), and you’ll see that eventually (if you’re using native transfer mode) you get a pointer back. Thats all, just a pointer. You don’t get a dialog from twain_32.dll by calling EnableDs. Now a dialog may come up, but that dialog wasn’t created by twain_32.
But you’re right on the last point, I don’t think I can help you.
Good Luck,August 5, 2008 at 4:18 pm #23652AnonymousParticipant
- Topics - 60
- Replies - 107
- Total Posts - 167
porn discussion board granny mature free porn vids
porn onpsp free powerpuff porn anime . german amateur models free hot secratary porn . cherry list teen porn your amateur porn movies . delete porn restore panda eys porn
the amateur dvd features karrine steffans porn free movie sample porn bukkake
enlish porn trishelle cannatella porn
laurence porn bedroom 156 visitor pictures amateur . rough lesbian sex porn sushami porn . old interratial pornporn sleeping teen free latinino porn pics sex videos and porn . porn tercher porn passes toon . hot secretary porn online video game porn
bastard lucky porn video large tit porn animal traffic porn free 3gp mpeg4 porn vidoes
office fucking porn porn fetish video
karina play free pornsweet angel porn
image porn young free porn m
kingdome hearts porn amateur radio stories
amateur dirty whores amateur radio extra class exam cheat . homemade porn from shepparton military confi porn . gay porn from the 70s amateur hardcaore . sick asian porn amateur escort meetup los angeles . teen movies 1970 s porn kenzie kennie porn amateur boudior photosfree bonding porn. grokster porn free full length wrestling porn .
anime porn games magna your amateur homemade porn pay porn download pokemon porn and anime porn
free pokemon creature porn games teeny boppers video porn
free dirty talking pornamateur female model portfolio
real free amateur piss mops porn
julie tawney porn vampirella porn
quistis porn hottest fucking net teen porn . amateurs webcam rencontresexe russian teen porn top 100 . home porn hunter gay porn with condom . sex porn hot teens older women fucking dogs porn movies black female porn star sitesporn angel dark lesbian. adult amateur match college porn models . tonya cooley cinemax porn free porn galleries dictionary . shit passion porn shitting free candida royalle porn movie .
rusain movie clips porn free small amateur nudes
south park yaoi pornffree porn clips
fed up paying for porn ppregnant porn
cherries porn anjelina jolie free porn gallery bu porn
click to watch porn porn audition test
total free cartoon porn dan steele porn star . blackwomen porn hardcore amateur porn in megs . porn 1920s militray porn sites . porn nude girls models ladies porn reviews . tire pornadult porn disney star free home anal porn when was porn invented . amateur allure backdoor misty rain and porn . amateur lingerie galleries lactating breast porn . porn video of anna nicole smith secret camrea porn
anime porn movie list jj’s amateur teens jj am
jorden capri porn toon bondage porn
collin porntransvestite dildo porn
porn starts that look like barbie black amateur homemade videos
traci lords porn galleries solution to internet porn addiction naughty daddy porn
- This topic has 75 replies, 12 voices, and was last updated 5 years, 10 months ago by .
Viewing 15 posts - 1 through 15 (of 76 total)
Viewing 15 posts - 1 through 15 (of 76 total)