Source language: Translate to:

Opacity controled by a variable

Post your suggestions for future versions of NeoBook

Moderator: Neosoft Support

Opacity controled by a variable

Postby carlos » Tue Nov 27, 2007 5:43 pm

Hi, I have a suggestion.

Will be fine that opacity of picture object should be contralate by a function.

So we will can make interesting effects and more beautiful interfaces.

Example:
Code: Select all
SetObjectOpacity "NameOfObject" "OpacityValue"


And I know and read that is very difficult, but Opacity for all objects is a very good idea, and is very according with WVista OS.

Ok, bye.

Carlos
User avatar
carlos
 
Posts: 95
Joined: Sat Jul 01, 2006 10:45 pm
Location: Colombia

Re: Opacity controled by a variable

Postby dpayer » Wed Nov 28, 2007 7:08 am

carlos wrote:Hi, I have a suggestion.

Will be fine that opacity of picture object should be contralate by a function.

So we will can make interesting effects and more beautiful interfaces.

Example:
Code: Select all
SetObjectOpacity "NameOfObject" "OpacityValue"


And I know and read that is very difficult, but Opacity for all objects is a very good idea, and is very according with WVista OS.

Ok, bye.

Carlos


Hello Carlos,

This idea may not work for you but if you put an image in a MSIE container, you can control opacity with style elements

http://www.w3schools.com/css/css_image_transparency.asp

and these attributes could be controlled by your NB program.

D
User avatar
dpayer
 
Posts: 1380
Joined: Mon Apr 11, 2005 5:55 am
Location: Iowa - USA

Postby Gaev » Wed Nov 28, 2007 8:04 am

I would also like to see a scripted method of changing the Opacity ... and other properties like Tiled vs. Stretched vs. Actual Size ... and all the sub-properties that go with each property ... as well as magnification etc. ... perhaps, to complement the GetObjectInfo command, there could be a ...
Code: Select all
SetObjectProperty "object" "property" "value"
... command.

I recently also found myself wanting the ability to dynamically alter the alignment in a Text object ... ended up using 3 separate Text objects each with a different Alignment ... and doing a bunch of MoveObject commands to accomodate this requirement.

If you don't need to have every possible opacity value, you could do a similar thing by having off-screen Picture objects ... each compiled with a different opacity value ... and then ...

- either change their file name as required ... and move them in the desired on-screen position

- or assign a small "all white" image to them ... and move them over the other Picture Object (the one with 100% opacity)
User avatar
Gaev
 
Posts: 3716
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada

Postby carlos » Wed Nov 28, 2007 8:40 am

Ok, thanks to both, In this moment I haven't a project but I too think that is a good idea.

dpayer, thanks for your note, I don't work with JPG in MSIE object, but your tip is very useful for me, in this moment I study CSS and JS and it is a good lesson :)

Gaev, thanks for the tips, your two solutions are the solutions than I use, is actually is a most direct form to aplicate variable opacity to picture object. But if I wanna a multistate opacity, I must make more pictures, 3,4, 5 or perhaps 10 ; for example, a picture with a palpitant fade effect.

Finally, all are good ideas, but better will be a official function on Neobook.

Ok, bye and thanks for all
User avatar
carlos
 
Posts: 95
Joined: Sat Jul 01, 2006 10:45 pm
Location: Colombia

Postby Tony Kroos » Wed Oct 26, 2011 1:52 am

it's been so long... is there any plugins to control image opacity?
Tony Kroos
 
Posts: 402
Joined: Thu Oct 15, 2009 3:43 pm


Return to NeoBook Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest