IonicWind Software

IWBasic => General Questions => Topic started by: Brian on October 17, 2018, 03:48:31 AM

Title: LM_Image Custom Image Control Library Problem
Post by: Brian on October 17, 2018, 03:48:31 AM
Larry,

The GetSize function seems to be broken. This code works as long as I don't replace the image size of 600,338 with the w,h values. Worked yesterday!

'Load a picture
   LM_Image_GetSize(fileName,w,h)
   LM_Image_Create(win,fileName,270,16,600,338,0,1)
   LM_Image_SetBGColor(win,1,Image,NoImage)
   LM_Image_SetImageBorder(win,1,Image,0,0)
   LM_Image_MaintainImageRatio(win,1,1)

Brian
Title: Re: LM_Image Custom Image Control Library Problem
Post by: LarryMc on October 17, 2018, 11:42:41 AM
Brian

what are you not seeing now that you were seeing yesterday?
It would help me look into it if you could email me a program that shows the problem.
Title: Re: LM_Image Custom Image Control Library Problem
Post by: LarryMc on October 17, 2018, 07:22:07 PM
I compared you program side by side to my version. Yours didn't work and mine did. They appeared to be identical.
That meant yours had something hidden typed into it. I replaced all the lines that involved my library and that didn't fix it. I replaced every thing from
WINDOW win
down.  Your program then works like it is suppose to.
I also used a colorpicker to set the image and noimage values to the correct tints.
Title: LM_Image Custom Image Control Library program
Post by: Brian on October 22, 2018, 07:59:57 AM
Hi, I've been messing with Larry's LM_Image library. This is what I've got so far. Only problem is I can only get it work on my PC using Larry's LM_Image 1.2 version - not the 1.3 he has just posted

We have been trying between us to get it to work with 1.3, but no success on my end. There's everything you need in this zip file, including the 1.2 stuff. I am not using the pbsctrl.inc file, as I don't really know how to convert it. I have included it here just for reference

You will know what to do with all the files, I reckon. If anyone can improve it, please do, and let us all know what you have done

Brian