Images in Livecode

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1519
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Images in Livecode

Post by [-hh] » Fri Aug 11, 2017 6:50 pm

Richmond,
it is really a good idea to use overlay effects and inks for Bidge's problem, as LC is *very* fast with applying that (rather than processing the imageData).

But don't forget, connected to inks:
= not all inks work the same on all platforms (e.g. linux has some problems with the opacity of the stack window when using ink "blendDstIn" -- could be used as feature, kind of windowShape)
= there was a change in Skia (the lib that LC uses) and by that the bitmap effects, that are still in the menus for inks, were removed starting with 9.0.0-dp7:
## Update Skia (graphics library) (9.0.0-dp-7, Release notes )
This major Skia update improves both rendering quality and performance. It also opens the door to substantial future improvements and feature additions. In order to allow this, support for certain legacy drawing features has had to be removed. In particular, legacy blend modes (also known as bitmap effects) are no longer supported.
shiftLock happens

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1859
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria
Contact:

Re: Images in Livecode

Post by richmond62 » Fri Aug 11, 2017 6:56 pm

TINTER4.png
DDD.livecode.zip
Here's the stack
(132.71 KiB) Downloaded 9 times
not all inks work the same on all platforms
Well, he'll just have to fiddle around (which is what I seem to do all the time when it comes to cross-platform matters. 8)
to find some combination that does what he wants on all his target platforms.
there was a change in Skia
So I am informed.
Well my reference stack can be used in whatever version of Livecode (8.1 and upwards)
to work those things out.

AND
, if you don't go for the greyscale picture of Iliya Beshkov you can swap in the picture of your choice.

https://en.wikipedia.org/wiki/Ilia_Beshkov

https://bg.wikipedia.org/wiki/%D0%98%D0 ... 0%BE%D0%B2
Last edited by richmond62 on Sat Aug 12, 2017 8:34 am, edited 2 times in total.

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am
Location: Australia

Re: Images in Livecode

Post by bidgeeman » Sat Aug 12, 2017 3:31 am

Thank you so much for the examples richmond62. They are brilliant. I'm not sure about the implementation though seeing that the area guide is also used as a slight watermark you don't want people using a slider to make it invisible but if there is a background that loads in of similar tones it will become hard to see. maybe I am overthinking this one and easier to just stay away from making blueish toned backgrounds? I doubt if there is any way to detect and auto adjust this.

Bidge
Attachments
OverlayVisibility.png
Overlay visibility

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1859
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria
Contact:

Re: Images in Livecode

Post by richmond62 » Sat Aug 12, 2017 11:36 am

The only reason why "people" (end-users) would use a slider to make things
invisible is if you provide them with a slider.

You, however, can use a slider to take your watermark-thing down to a level that
you need; then delete the slider.

bogs
Posts: 457
Joined: Sat Feb 25, 2017 10:45 pm

Re: Images in Livecode

Post by bogs » Sat Aug 12, 2017 1:46 pm

And remember Bidge, not too many sliders in a program, or your end users will drool all over your program!
Image
ImageImage

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am
Location: Australia

Re: Images in Livecode

Post by bidgeeman » Sat Aug 12, 2017 2:23 pm

LOL....omg I love those sliders bogs :)

(drooling)
Bidge

bogs
Posts: 457
Joined: Sat Feb 25, 2017 10:45 pm

Re: Images in Livecode

Post by bogs » Sat Aug 12, 2017 10:23 pm

Yah, they are great for a quick snack, although WAY overpriced really.
ImageImage

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”