The following is the code for the dll:
Code: Select all
ProcedureDLL.l LoadPicture(FileName.s)
;This will load a PNG picture and soon do manipulation
GM = LoadImage(#PB_Any,FileName)
ProcedureReturn GM
EndProcedure
ProcedureDLL AttachProcess(Instance)
UseJPEGImageDecoder()
UseTIFFImageDecoder()
UseTGAImageDecoder()
UsePNGImageDecoder()
EndProcedure
How would I do that? I tried the following, but PB spits out an error claiming the return from the dll is not an initialized image, but it is ...
Code: Select all
;Testing ... should work?
myLIB.l = OpenLibrary(#PB_Any, "ImageLib.dll")
ff_Picture.l = IsFunction(myLIB, "LoadPicture")
rt1 = CallFunctionFast(ff_Picture, "bgMenu.png")
bgMenu.l = CatchImage(#PB_Any,UseImage(rt1))
CloseLibrary(myLIB)
Ive tried everything, w/o the useimage, as well. Can anybody help?

