Re: newbie jpeg file.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"Boki" <bokiteam@xxxxxxxxxxxxxx> wrote in message
news:OFFrS51FGHA.2212@xxxxxxxxxxxxxxxxxxxxxxx
> I am newbie, I didn't know how to draw a line ... load a
> picture to screen yet... could you please advice where
> should I start?

You need to become familiar with the Graphics Device Interface (GDI) or its
successor GDI+.

An overview of GDI is here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/wingdistart_9ezp.asp

and here is some help on drawing lines and curves:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/linecurv_1ws3.asp

> My target this time is to understand how to do screen
> control in VC, and how to load a jpeg file from array.
> ( because my jpeg file will store in an array, because
> it will be collected from serial port )

This is a non-trivial task. If you are using MFC you may want to take a look
at this:

http://msdn.microsoft.com/msdnmag/issues/01/10/c/

Regards,
Will


.



Relevant Pages

  • Re: newbie jpeg file.
    ... Best regards, ... > successor GDI+. ... and how to load a jpeg file from array. ...
    (microsoft.public.vc.language)
  • Re: newbie jpeg file.
    ... You need to become familiar with the Graphics Device Interface (GDI) or its ... and how to load a jpeg file from array. ...
    (microsoft.public.vc.language)
  • Re: Load a byte[]
    ... If you want to load your byte array in DirectShow, ... Or you could write the byte array as a GDI bitmap on disk ... generate a video stream. ... My question is how to load in dShow my array of byte??? ...
    (microsoft.public.win32.programmer.directx.managed)
  • Re: fast stable sort
    ... For fastest load, at expense of slower sort, you ask the operating ... and you memory-map the file directly into that array. ... memory of your big array. ... possible to assure locality of reference and thus avoid thrashing ...
    (comp.programming)
  • Re: How can I create a 2D ArrayList? String usually.
    ... I basically would like a 2 column array or whatever that will be static, ... in values won't change after I load them and I would like to fairly quickly ... > Array.IndexOf is probably going to yield linear performance as you add ... you might be better off using hashtables. ...
    (microsoft.public.dotnet.languages.csharp)