Re: loading, Flipping and saving jpgs

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




"Michael C" <nospam@xxxxxxxxxxx> wrote in message news:O5fCyvTjIHA.5260@xxxxxxxxxxxxxxxxxxxxxxx
"Bill McCarthy" <Bill@xxxxxxxxxx> wrote in message news:50A14BA5-13D1-4569-A67C-330630DEAC57@xxxxxxxxxxxxxxxx
So how different is that from VB.NET ? (rhetorical) The differences are I'm using a pointer for the image rather than an object wrapper, and I need to InitGdip and ShutdownGdip (although unlike VB.NET I get to control when GDI+ is loaded and unloaded), and the saving requires me to declare the EncoderParameters. So it's a little different, perhaps a little crueder, albeit with a bit more flexibility than VB.NET. "complicated".... I don't think so. Compared to the complications of porting an app over to VB.NET, it seems incredibly easy and simple to me.

You're using someone elses code.

As you are in .NET. The thing here is it's *not* a 20 or 30 MB library ;)

So basically it is complicated,

Huh ? I just showed you the code.

just someone else has done the work for you.

And that's different from .NET how ?

I understand what you're saying but my original statement was that this would be complicated to do in vb6 and require a lot of api calls, which is true.

As I said, .NET requires the same API calls. In fact .NET needs to do some PInvoke marshalling to call upon GDI+.
Both the .NET code and the VB6 code ultimately use GDI+, and both require the same amount of api calls.









.



Relevant Pages

  • Re: loading, Flipping and saving jpgs
    ... Both the .NET code and the VB6 code ultimately use GDI+, ... my statement was that VB6 would require API calls where it ...
    (microsoft.public.vb.general.discussion)
  • Re: loading, Flipping and saving jpgs
    ... Both the .NET code and the VB6 code ultimately use GDI+, ... my statement was that VB6 would require API calls ...
    (microsoft.public.vb.general.discussion)
  • Re: loading, Flipping and saving jpgs
    ... Using GDI+ in VB6 is complicated isn't it? ... complications of porting an app over to VB.NET, ... processing by writing a single Linq query or function call, ...
    (microsoft.public.vb.general.discussion)
  • Re: loading, Flipping and saving jpgs
    ... It doesn't appear to be much of a wrapper for GDI+. ... that means you don't need to declare API calls. ... entire app over to dotnet and then worry about distributing the dotnet ... That Image.FromFile throws a file not found exception ...
    (microsoft.public.vb.general.discussion)
  • Re: loading, Flipping and saving jpgs
    ... It doesn't appear to be much of a wrapper for GDI+. ... As has already been pointed out it is vastly simpler than having to port the entire app over to dotnet and then worry about distributing the dotnet libraries and which versions etc, ... That Image.FromFile throws a file not found exception rather than letting the API throw that is immaterial as it is still possible for the file to be renamed or moved before the API call actually loads it. ...
    (microsoft.public.vb.general.discussion)