[C#] Dcraw problemen / RAW afbeeldingen laten zien

Pagina: 1
Acties:

  • simon
  • Registratie: Maart 2002
  • Laatst online: 17-04 22:34
Beste luitjes,

Ik ben bezig aan een eigen image library programma in C#; omdat ik raw's heb. Maar nu wil ik die direct laten zien, en dat zou kunnen door de dcraw stream te laten zien; maar dat lukt me niet. Ik gebruik de windows versie van dcraw; http://www.insflug.org/raw/software/tools/dcraw.php3 daar te vinden.

C#:
1
2
3
4
process.StartInfo = new System.Diagnostics.ProcessStartInfo ("dcraw", args);
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.UseShellExecute = false;
process.Start ();


zo wordt het process aangeroepen; maar dat geeft de error dat de paramater onjuist is (enige) met een Win32Exception. (The parameter is incorrect)

Hier detail ervan:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
System.ComponentModel.Win32Exception was unhandled
  Message="The parameter is incorrect"
  Source="System"
  ErrorCode=-2147467259
  NativeErrorCode=87
  StackTrace:
       at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
       at System.Diagnostics.Process.Start()
       at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
       at System.Diagnostics.Process.Start(String fileName)
       at ConsoleApplication1.Program.Main(String[] args) in C:\Documents and Settings\Simon de la Court\My Documents\Visual Studio 2005\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs:line 16
       at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()


Zou het kunnen dat ik die dcraw.exe alleen van de command line mag opstarten of iets dergelijks?

De source van dcraw (origineel unix geval):
http://www.cybercom.net/~dcoffin/dcraw/

Hier gebruiken ze 'm ook, maar dan in mono: http://www.gnome.org/projects/f-spot/#hacking

btw als iemand een alternatieve manier heeft om RAW's te laten zien, ik houd me aanbevolen :) Ik heb al geprobeerd om uit de Powertoys Rawviewer van MS wat te halen, is me niet gelukt :(

[ Voor 6% gewijzigd door simon op 08-01-2006 16:49 ]

|>


  • simon
  • Registratie: Maart 2002
  • Laatst online: 17-04 22:34
ik krijg als ik dubbelklik op de file (dus vanaf explorer de file open) af en toe (hangt af van de de dir, maar vooral in de visual studio dir) de volgende error:

Afbeeldingslocatie: http://simon.delacourt.co.uk/GoT/error.JPG

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
System.ComponentModel.Win32Exception was unhandled
  Message="The parameter is incorrect"
  Source="System"
  ErrorCode=-2147467259
  NativeErrorCode=87
  StackTrace:
       at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
       at System.Diagnostics.Process.Start()
       at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
       at System.Diagnostics.Process.Start(String fileName)
       at WindowsApplication1.Form1.Form1_Load(Object sender, EventArgs e) in C:\Documents and Settings\Simon de la Court\My Documents\Visual Studio 2005\Projects\WindowsApplication1\WindowsApplication1\Form1.cs:line 25
       at System.Windows.Forms.Form.OnLoad(EventArgs e)
       at System.Windows.Forms.Form.OnCreateControl()
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl()
       at System.Windows.Forms.Control.WmShowWindow(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.ContainerControl.WndProc(Message& m)
       at System.Windows.Forms.Form.WmShowWindow(Message& m)
       at System.Windows.Forms.Form.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
       at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
       at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
       at System.Windows.Forms.Control.set_Visible(Boolean value)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at WindowsApplication1.Program.Main() in C:\Documents and Settings\Simon de la Court\My Documents\Visual Studio 2005\Projects\WindowsApplication1\WindowsApplication1\Program.cs:line 17
       at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()

[ Voor 87% gewijzigd door simon op 08-01-2006 21:11 ]

|>