[progress Communities] [progress Openedge Abl] Forum Post: Gdpicture Imaging Activex -...

  • Thread starter Thread starter Derek Lord
  • Start date Start date
Status
Not open for further replies.
D

Derek Lord

Guest
Hello all, I have exhausted my combination of MEMPTR/RAW combination attempts of code to try and get the method below to work. Does anyone have any suggestions on what is needed to to get the 'Integer-Data' into a memptr? I am trying to avoid writing an image to disk and using COPY-LOB back into a memptr. ABL Syntax from COM Object Viewer [ Integer-Var = ] : SaveAsByteArray ( Integer-ImageID, INPUT-OUTPUT Integer-Data AS UNSIGNED-BYTE BY-POINTER, INPUT-OUTPUT Integer-Length BY-POINTER, Integer-ImageFormat, Integer-EncoderParameter ). VB Example from GdPicture Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("test.tif") Dim ImageBytes As Byte() = Nothing Dim Length As Integer oGdPictureImaging.SaveAsByteArray(ImageID, ImageBytes, Length, DocumentFormat.DocumentFormatJPEG, 90) Many thanks, Derek OpenEdge Version 11.6 (32-bit)

Continue reading...
 
Status
Not open for further replies.
Back
Top