PC Review


Reply
Thread Tools Rate Thread

How to display Image without using PictureBox?

 
 
Gravity
Guest
Posts: n/a
 
      11th Jun 2005
Hi,

As the title indicated, does anyone has any easy solution?

I found the I have trouble attaching images to the PictureBox in a separate
thread. Basically it just hang there and not even catch it. I am really
stuck at there. On the other hand, direct calling the function without
thread is fine.

Hope someone can give some guide line to this beginner.

Thanks for reading.


 
Reply With Quote
 
 
 
 
Guest
Posts: n/a
 
      11th Jun 2005
You cannot affect UI elements from a worker thread. Use Control.Invoke to
marshal calls back to the UI thread and affect the UI from there.

And for the archive, if you want to not use the PictureBox, use another
control like a Panel, override its OnPaint and manually paint the picture
there.

-Chris


"Gravity" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> As the title indicated, does anyone has any easy solution?
>
> I found the I have trouble attaching images to the PictureBox in a
> separate
> thread. Basically it just hang there and not even catch it. I am really
> stuck at there. On the other hand, direct calling the function without
> thread is fine.
>
> Hope someone can give some guide line to this beginner.
>
> Thanks for reading.
>



 
Reply With Quote
 
=?Utf-8?B?TGlvbmVsIFJleWVybw==?=
Guest
Posts: n/a
 
      12th Jun 2005
Hi,

You can also consider P/Invoking the Game API, especially if you are
interested in high performance. This API is low level, it enables your
application to write bitmap directly into the display memory. It will work to
display image from the worker thread with that. As it is more complicated
than the PictureBox, I suggest you should only take a look at it if you are
interested in high performance display.

http://msdn.microsoft.com/library/de...sp_gx_bvrh.asp

Lionel

"Gravity" wrote:

> Hi,
>
> As the title indicated, does anyone has any easy solution?
>
> I found the I have trouble attaching images to the PictureBox in a separate
> thread. Basically it just hang there and not even catch it. I am really
> stuck at there. On the other hand, direct calling the function without
> thread is fine.
>
> Hope someone can give some guide line to this beginner.
>
> Thanks for reading.
>
>
>

 
Reply With Quote
 
Gravity
Guest
Posts: n/a
 
      12th Jun 2005
Thanks for the link. It do help. : )

"Lionel Reyero" <(E-Mail Removed)> wrote in message
news5672E09-DA7A-4856-851C-(E-Mail Removed)...
> Hi,
>
> You can also consider P/Invoking the Game API, especially if you are
> interested in high performance. This API is low level, it enables your
> application to write bitmap directly into the display memory. It will work
> to
> display image from the worker thread with that. As it is more complicated
> than the PictureBox, I suggest you should only take a look at it if you
> are
> interested in high performance display.
>
> http://msdn.microsoft.com/library/de...sp_gx_bvrh.asp
>
> Lionel
>
> "Gravity" wrote:
>
>> Hi,
>>
>> As the title indicated, does anyone has any easy solution?
>>
>> I found the I have trouble attaching images to the PictureBox in a
>> separate
>> thread. Basically it just hang there and not even catch it. I am really
>> stuck at there. On the other hand, direct calling the function without
>> thread is fine.
>>
>> Hope someone can give some guide line to this beginner.
>>
>> Thanks for reading.
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Form an image from received bytes from server and display that image into the picturebox nishi.hirve@gmail.com Microsoft C# .NET 2 25th Jul 2006 08:17 AM
image not display in picturebox =?Utf-8?B?TGkgV2VuZw==?= Microsoft Dot NET 3 31st Oct 2005 10:38 AM
How to display image in PictureBox in CE Anup Jishnu via .NET 247 Microsoft Dot NET 0 15th Mar 2005 04:30 PM
Display the image into picturebox without saving image files into Hard disk Dev Microsoft C# .NET 1 21st Jul 2003 11:14 PM
Display the image into picturebox without saving image files into Hard disk. Dev Microsoft Dot NET Framework Forms 0 21st Jul 2003 04:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:33 PM.