Re: Browser Widget and Images
Thanks! I had forgotten about "import as control" and about set the imagedata of image “my image”. set the imagedata doesn’t fit to the image’s object size though. I would probably have to resize the image beforehand. I also came across: put URL "binfile:///ExportedImageFile.png" into image “my image” The above does fit the image size nicely and I can paint on it etc. Thanks for all of your help! Rick > On Mar 14, 2022, at 5:04 AM, Klaus major-k via use-livecode > wrote: > >> set the imagedata of img "myImage" to the imagedata of img "myImage" > > what Jim said! :-) > > Thisw way the image becomes part of the stack as if "imported as control" ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Browser Widget and Images
Hi Rick, > Am 14.03.2022 um 04:53 schrieb Jim Lambert via use-livecode > : > >> So accessing the URL of the image directly in the image object >> puts the image there, which is a good first step. >> >> How is it stored however? >> >> If one looks at the image source it still shows the URL. >> >> I find I?m unable to paint on top of the image, probably >> because that would require my being able to modify the >> online URL which isn?t possible for the obvious reason. >> >> I probably need to make a local copy of the image to >> be able to work on it. Export image? Copy it to >> the clipboard and paste it elsewhere? >> >> Suggestions? > > Rick, > set the imagedata of img "myImage" to the imagedata of img "myImage" what Jim said! :-) Thisw way the image becomes part of the stack as if "imported as control" and you can paint on it or whatever, which is not possible with referenced images, be they local or online. > Will replace the referenced image with the actual content of that image. > In other words the image will now be local and you can then manipulate its > data. > No need for snapshots. Although they work too! > > Jim Lambert Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Browser Widget and Images
> > So accessing the URL of the image directly in the image object > puts the image there, which is a good first step. > > How is it stored however? > > If one looks at the image source it still shows the URL. > > I find I?m unable to paint on top of the image, probably > because that would require my being able to modify the > online URL which isn?t possible for the obvious reason. > > I probably need to make a local copy of the image to > be able to work on it. Export image? Copy it to > the clipboard and paste it elsewhere? > > Suggestions? Rick, set the imagedata of img "myImage" to the imagedata of img "myImage" Will replace the referenced image with the actual content of that image. In other words the image will now be local and you can then manipulate its data. No need for snapshots. Although they work too! Jim Lambert ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Browser Widget and Images
Rick, you want to look at the export snapshot or the export image commands for that. pb > On Mar 13, 2022, at 1:56 PM, Rick Harrison via use-livecode > wrote: > > Hi Klaus, > > Thanks for answering. > > So accessing the URL of the image directly in the image object > puts the image there, which is a good first step. > > How is it stored however? > > If one looks at the image source it still shows the URL. > > I find I’m unable to paint on top of the image, probably > because that would require my being able to modify the > online URL which isn’t possible for the obvious reason. > > I probably need to make a local copy of the image to > be able to work on it. Export image? Copy it to > the clipboard and paste it elsewhere? > > Suggestions? > > Rick > > > >> On Mar 13, 2022, at 2:58 PM, Klaus major-k via use-livecode >> wrote: >> >> Hi Rick, >> >>> Am 13.03.2022 um 19:34 schrieb Rick Harrison via use-livecode >>> : >>> >>> I have a large free public domain image displaying nicely in my LC Browser >>> Widget. >>> I want to bring the image directly into a LiveCode image object to be able >>> to play around with it. >>> What’s the best way to do that? >> >> why not just set the FILENAME of the image object to the file, either local >> or online? >> If the image is very big, you could group that single image object and add >> the groups scrollbars. >> Or just scale the image... >> >>> While I was looking around in the dictionary for possibilities, I came >>> across some older revBrowser commands. Do they work with with >>> the new browser widget or are the two completely different animals? >> >>> >>> Thanks, >>> >>> Rick >> >> Best >> >> Klaus >> >> -- >> Klaus Major >> https://www.major-k.de >> https://www.major-k.de/bass >> kl...@major-k.de >> >> >> ___ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Browser Widget and Images
Hi Klaus, Thanks for answering. So accessing the URL of the image directly in the image object puts the image there, which is a good first step. How is it stored however? If one looks at the image source it still shows the URL. I find I’m unable to paint on top of the image, probably because that would require my being able to modify the online URL which isn’t possible for the obvious reason. I probably need to make a local copy of the image to be able to work on it. Export image? Copy it to the clipboard and paste it elsewhere? Suggestions? Rick > On Mar 13, 2022, at 2:58 PM, Klaus major-k via use-livecode > wrote: > > Hi Rick, > >> Am 13.03.2022 um 19:34 schrieb Rick Harrison via use-livecode >> : >> >> I have a large free public domain image displaying nicely in my LC Browser >> Widget. >> I want to bring the image directly into a LiveCode image object to be able >> to play around with it. >> What’s the best way to do that? > > why not just set the FILENAME of the image object to the file, either local > or online? > If the image is very big, you could group that single image object and add > the groups scrollbars. > Or just scale the image... > >> While I was looking around in the dictionary for possibilities, I came >> across some older revBrowser commands. Do they work with with >> the new browser widget or are the two completely different animals? > >> >> Thanks, >> >> Rick > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > kl...@major-k.de > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Browser Widget and Images
Hi Rick, > Am 13.03.2022 um 19:34 schrieb Rick Harrison via use-livecode > : > > I have a large free public domain image displaying nicely in my LC Browser > Widget. > I want to bring the image directly into a LiveCode image object to be able to > play around with it. > What’s the best way to do that? why not just set the FILENAME of the image object to the file, either local or online? If the image is very big, you could group that single image object and add the groups scrollbars. Or just scale the image... > While I was looking around in the dictionary for possibilities, I came > across some older revBrowser commands. Do they work with with > the new browser widget or are the two completely different animals? > > Thanks, > > Rick Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Browser Widget and Images
I have a large free public domain image displaying nicely in my LC Browser Widget. I want to bring the image directly into a LiveCode image object to be able to play around with it. What’s the best way to do that? While I was looking around in the dictionary for possibilities, I came across some older revBrowser commands. Do they work with with the new browser widget or are the two completely different animals? Thanks, Rick ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode