Page 18 of 18

Re: Image Plugin - Simple drawing pane

PostPosted: Fri Jul 25, 2014 3:48 am
by UltraVox
Thank you Hans,

While you write your message, I actually found the solution of the second rectangle outside of the application. it works very well !

The problem now is :

I load a PNG image with transparent properties, but after saving, the transparency is lost (transparent becomes white). Do you know why ?

In all cases this plugin provides many important things for me ;)

Thank you again!

Re: Image Plugin - Simple drawing pane

PostPosted: Fri Jul 25, 2014 3:55 am
by HPW
I load a PNG image with transparent properties, but after saving, the transparency is lost (transparent becomes white). Do you know why ?


Because hpwImage is a 24 bit Image component. So it can not support a true 8 bit Alpha channel which would need 32 bit.

Regards

Re: Image Plugin - Simple drawing pane

PostPosted: Fri Jul 25, 2014 4:16 am
by UltraVox
Okay, thank you for this info!

Re: Image Plugin - Simple drawing pane

PostPosted: Fri Aug 07, 2015 2:36 pm
by David de Argentina
Hi Hans-Peter

I am using your plugin to show some trigonometric functions and equations.
In fact, all works fine.

I have some issues about the location of the 0,0 point.

I'm doing some neobook calculations, in order to recreate the coordinates of the points correctly.

I think, if you could add some declarations like:

Setvar "[HpwImageOriginPoint] "TopLeft"
Setvar "[HpwImageOriginPoint] "BottonLeft"
Setvar "[HpwImageOriginPoint] "TopRight"
Setvar "[HpwImageOriginPoint] "BottonRight"
Setvar "[HpwImageOriginPoint] "Center"

It could be a goal, because NeoBook would not waste time in calculate real coordinates.
Remember Neobook is not the fastest compiler to do this kind of job...

Is this possible ?

Thanks in advance,
David de Argentina

Re: Image Plugin - Simple drawing pane

PostPosted: Fri Aug 07, 2015 11:21 pm
by HPW
Hello David,

Is this possible ?


Might be, but only with a massiv rewrite of each drawing command.
You know that the coordinate system is the one used everywhere in Windows and neobook.
You may also define 2 offset-variables and use it in every of your draw-commands.
Not sure how much performane this math on the arguments costs.

When you are in need for performance you might consider using the direct call Interface from a plugin programming language (one that can import dll-functions). I use this from newLisp, so you may have a look at the sample Pub.

So currently I have no plans to do this. Sorry.

Regards

Re: Image Plugin - Simple drawing pane

PostPosted: Sat Aug 08, 2015 9:04 am
by HPW
Just upload a new hpwImage 2.61:

http://www.hpwsoft.de/anmeldung/html1/n ... book5.html

Action: hpwImagePickColor - Pick a color from a point from the complete desktop.(like the picker in hpwColorCircle)

Variable: [hpwColorBoxPosLeft] - Allows to set the Position of the hpwColorBox.
Variable: [hpwColorBoxPosTop] - Allows to set the Position of the hpwColorBox.

Variable: [hpwColorCirclePosLeft] - Allows to set the Position of the hpwColorCircle.
Variable: [hpwColorCirclePosTop] - Allows to set the Position of the hpwColorCircle.

Regards

Re: Image Plugin - Simple drawing pane

PostPosted: Sun Aug 09, 2015 4:22 am
by HPW
Just upload a new hpwImage 2.62:

http://www.hpwsoft.de/anmeldung/html1/n ... book5.html

Action-Variable: [RectangleName_PickColorOnChange] - Allows an action to process the color under the pipette-cursor when moving.

Regards

Re: Image Plugin - Simple drawing pane

PostPosted: Wed Sep 16, 2015 12:43 pm
by HPW
Just upload a new hpwImage 2.63:

http://www.hpwsoft.de/anmeldung/html1/n ... book5.html

Variable: [hpwImagePopupAutoPopup] - Allows to disable the right-click popup activation.
Action: hpwImageShowPopup - Show the popupmenu of the image.

hpwImageShowPopup allows the call from the popup from anywhere, a button or any of the click-events.

Regards