Click here to Skip to main content
15,923,557 members
Home / Discussions / C#
   

C#

 
GeneralRe: Volume Controls and interop Pin
Heath Stewart6-Jul-04 5:10
protectorHeath Stewart6-Jul-04 5:10 
GeneralRe: Volume Controls and interop Pin
Oldmate6-Jul-04 15:55
Oldmate6-Jul-04 15:55 
GeneralRe: Volume Controls and interop Pin
Heath Stewart7-Jul-04 3:04
protectorHeath Stewart7-Jul-04 3:04 
GeneralO/R mapping Pin
Serge Lobko-Lobanovsky6-Jul-04 3:11
Serge Lobko-Lobanovsky6-Jul-04 3:11 
GeneralRe: O/R mapping Pin
Steven Campbell6-Jul-04 7:48
Steven Campbell6-Jul-04 7:48 
GeneralRe: O/R mapping Pin
Serge Lobko-Lobanovsky6-Jul-04 22:34
Serge Lobko-Lobanovsky6-Jul-04 22:34 
Generalpicture manipulation Pin
sreejith ss nair6-Jul-04 1:42
sreejith ss nair6-Jul-04 1:42 
GeneralRe: picture manipulation Pin
Heath Stewart6-Jul-04 4:36
protectorHeath Stewart6-Jul-04 4:36 
sreejith ss nair wrote:
1. is it possible to read a picture format directly from a scanner using C# ?

Yes, with a TWAIN driver wrapped in managed code. I'm not sure of any third-party libraries that may exist (they probably do), but writing this requires a lot of knowledge of device drivers and TWAIN. You're best-off just having the scanner save the image and read it into managed code, or find a third-party library that does enscapsulate TWAIN drivers for your scanner. You may also be able to leverage WIA (Windows Image Acquisition).

sreejith ss nair wrote:
2. is it possible to get the type of picture that if i read directly from a hard drive ?

What? If you read it from a stream without knowing the ImageFormat? Use the Image.RawFormat property (inheritted by the Bitmap class).

sreejith ss nair wrote:
3. i have a .doc or .xls file and i included few pictures using oledb techinics. I need to filter that perticular picture file or files from that .doc or .xls file using my c# code block. Is it possible ?

Yes. You'll need to enumerate the objects in the compound document and determine what type they are. There are documented APIs in the Office automation documentation that can be installed with Office that detail this.

sreejith ss nair wrote:
4. how can i compare picture files.if it is possible give me the technology behind this. Which technology will support this. is it possible with C# ?

You need to perform a pixel-by-pixel comparison. Use LockBits on two Bitmaps and read through the BitmapData comparing the pixels of each image.

Take a look at a reply I wrote a day or two again in this forum about how to compare two MemoryStreams. The concept is the same, though the manner is a little different. You just loop through the pixels (may be multiple bytes) and compare them. Using unmanaged code is a little faster. See Christian Graus's articles on imaging in .NET for examples.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: picture manipulation Pin
Anonymous6-Jul-04 20:13
Anonymous6-Jul-04 20:13 
GeneralRe: picture manipulation Pin
sreejith ss nair6-Jul-04 20:16
sreejith ss nair6-Jul-04 20:16 
GeneralRe: picture manipulation Pin
Heath Stewart7-Jul-04 3:37
protectorHeath Stewart7-Jul-04 3:37 
Generalbackward compatibility Pin
sreejith ss nair5-Jul-04 23:40
sreejith ss nair5-Jul-04 23:40 
GeneralRe: backward compatibility Pin
Heath Stewart6-Jul-04 4:42
protectorHeath Stewart6-Jul-04 4:42 
GeneralDebug and Trace Pin
sreejith ss nair5-Jul-04 23:33
sreejith ss nair5-Jul-04 23:33 
GeneralRe: Debug and Trace Pin
Heath Stewart6-Jul-04 4:37
protectorHeath Stewart6-Jul-04 4:37 
GeneralDebug and Trace Pin
sreejith ss nair5-Jul-04 23:32
sreejith ss nair5-Jul-04 23:32 
GeneralRe: Debug and Trace Pin
Colin Angus Mackay5-Jul-04 23:37
Colin Angus Mackay5-Jul-04 23:37 
GeneralRe: Debug and Trace Pin
sreejith ss nair5-Jul-04 23:44
sreejith ss nair5-Jul-04 23:44 
Generallocalized application Pin
sreejith ss nair5-Jul-04 23:24
sreejith ss nair5-Jul-04 23:24 
GeneralRe: localized application Pin
Colin Angus Mackay5-Jul-04 23:33
Colin Angus Mackay5-Jul-04 23:33 
GeneralRe: localized application Pin
sreejith ss nair5-Jul-04 23:34
sreejith ss nair5-Jul-04 23:34 
GeneralRe: localized application Pin
Colin Angus Mackay5-Jul-04 23:40
Colin Angus Mackay5-Jul-04 23:40 
GeneralRe: localized application Pin
sreejith ss nair5-Jul-04 23:47
sreejith ss nair5-Jul-04 23:47 
GeneralRe: localized application Pin
sreejith ss nair5-Jul-04 23:54
sreejith ss nair5-Jul-04 23:54 
GeneralRe: localized application Pin
Colin Angus Mackay6-Jul-04 0:12
Colin Angus Mackay6-Jul-04 0:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.