PixelEdit Library

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • sside
    New Member
    • Dec 2003
    • 475

    PixelEdit Library

    PixelEdit Library (PixelEdit.dll v.1.0.0.0).

    Functions:
    1. Open
    2. GetPixel
    3. SetPixel
    4. SaveAs
    5. Close
    6. GetError


    .Net 2.0 required

    With Kind Regards
    sside
  • clueless
    Forum Member
    • Jun 2006
    • 421

    #2
    Thanks a lot for this one.
    I can make use of this little gem on multiple projects.

    Id like to use this dll in Vb6 as well as AMS but im not sure how to write the declaration or the correct syntax to call the function.

    Comment

    • RizlaUK
      Indigo Rose Customer
      • May 2006
      • 5552

      #3
      something like this should work

      Code:
      Private Declare Function OpenFile Lib "PixelEdit.dll" Alias "Open" (ByVal imagefile As String) As Long
      Private Declare Function GetPixel Lib "PixelEdit.dll" (ByVal x As Long, ByVal y As Long) As Long
      Private Declare Function SetPixel Lib "PixelEdit.dll" (ByVal x As Long, ByVal y As Long, ByVal color As Long) As Long
      Private Declare Function SaveAs Lib "PixelEdit.dll" (ByVal imagefile As String) As Long
      Private Declare Function CloseFile Lib "PixelEdit.dll" Alias "Close" () As Long
      Private Declare Function GetError Lib "PixelEdit.dll" () As String
      Embrace change in your life, you never know, it could all work out for the best

      Comment

      • clueless
        Forum Member
        • Jun 2006
        • 421

        #4
        good man :yes

        Comment

        • clueless
          Forum Member
          • Jun 2006
          • 421

          #5
          Is it possible to work on 2 images at the same time using this dll?

          Comment

          • sside
            New Member
            • Dec 2003
            • 475

            #6
            Originally posted by clueless View Post
            Is it possible to work on 2 images at the same time using this dll?
            No. It keeps only one reference at all times. If you open another image you will loose the first reference.

            With Kind Regards
            sside

            Comment

            • clueless
              Forum Member
              • Jun 2006
              • 421

              #7
              All the declarations compile ok but im getting :
              Error 49: Bad DLL calling convetion
              The Bad Calling Convention actually means that it counted up the number of bytes you pushed onto the stack, and it was different to the number popped off.
              Ive tried changind the variable types for ,double's and bytes but i get the same error each time.

              Comment

              Working...
              X