Image Plugin - Simple drawing pane
Moderator: Neosoft Support
Re: Image Plugin - Simple drawing pane
Just upload a new hpwImage 2.50:
http://www.hpwsoft.de/anmeldung/html1/n ... book5.html
Bugfix: Forgotten active debug messagebox in resize-code removed.
Regards
http://www.hpwsoft.de/anmeldung/html1/n ... book5.html
Bugfix: Forgotten active debug messagebox in resize-code removed.
Regards
Hans-Peter
Re: Image Plugin - Simple drawing pane
Just upload a new hpwImage 2.51:
http://www.hpwsoft.de/anmeldung/html1/n ... book5.html
Action: hpwImageStampUpdateBuffer- Update stamp back-buffer with current image content.
Variable: [hpwImageStampButton] allows to attach the stamp action to left,right,middle and double click.
Variable: [hpwImageStampSnapColor] is set to the snap-color
Variable: [hpwImageStampSnapDistance] is set to the distance from cursor-pos where snap color is searched.
Variable: [RectangleName_StampNoColorSnapAction] action is fired when no snap point is found.
Variable: [RectangleName_StampAction] action is fired when a stamp-event has happend.
See sample pub page 6 button 'Snap Stamp'.
Different click-mode was needed on tablets where a fingermove acts liks a left click.
http://www.hpwsoft.de/anmeldung/html1/n ... book5.html
Action: hpwImageStampUpdateBuffer- Update stamp back-buffer with current image content.
Variable: [hpwImageStampButton] allows to attach the stamp action to left,right,middle and double click.
Variable: [hpwImageStampSnapColor] is set to the snap-color
Variable: [hpwImageStampSnapDistance] is set to the distance from cursor-pos where snap color is searched.
Variable: [RectangleName_StampNoColorSnapAction] action is fired when no snap point is found.
Variable: [RectangleName_StampAction] action is fired when a stamp-event has happend.
See sample pub page 6 button 'Snap Stamp'.
Different click-mode was needed on tablets where a fingermove acts liks a left click.
Hans-Peter
Re: Image Plugin - Simple drawing pane
Just upload a new hpwImage 2.52:
http://www.hpwsoft.de/anmeldung/html1/n ... book5.html
Action: hpwImageGetBoundery - Find the rectangle-boundery of a bitmap inside a area with backgroundcolor.
Variable: [Rectanglename_StampX] stores the xpos of the color snap point.
Variable: [Rectanglename_StampY] stores the ypos of the color snap point
Regards
http://www.hpwsoft.de/anmeldung/html1/n ... book5.html
Action: hpwImageGetBoundery - Find the rectangle-boundery of a bitmap inside a area with backgroundcolor.
Variable: [Rectanglename_StampX] stores the xpos of the color snap point.
Variable: [Rectanglename_StampY] stores the ypos of the color snap point
Regards
Hans-Peter
Re: Image Plugin - Simple drawing pane
Just upload a new zip of hpwImage 2.52:
Bugfix: hpwImageGetBoundery was not working with other then white background. Always return the whole image size values.
So please download it again.
Sorry for any double work.
Regards
Bugfix: hpwImageGetBoundery was not working with other then white background. Always return the whole image size values.
So please download it again.
Sorry for any double work.
Regards
Hans-Peter
Re: Image Plugin - Simple drawing pane
Just upload a new hpwImage 2.53:
http://www.hpwsoft.de/anmeldung/html1/n ... book5.html
Action: hpwImageStamp - Places a stamp by code on an image.
http://www.hpwsoft.de/anmeldung/html1/n ... book5.html
Action: hpwImageStamp - Places a stamp by code on an image.
Hans-Peter
Re: Image Plugin - Simple drawing pane
Just upload a new hpwImage 2.54:
http://www.hpwsoft.de/anmeldung/html1/n ... book5.html
Bugfix: hpwImageLoadStamp - Had a memory-leak when using TIF/STW from embedded filesystem
http://www.hpwsoft.de/anmeldung/html1/n ... book5.html
Bugfix: hpwImageLoadStamp - Had a memory-leak when using TIF/STW from embedded filesystem
Hans-Peter
Re: Image Plugin - Simple drawing pane
Hello,
I want to notice that hpwImage support for neopaint's STW format is neopaint 4 only.
Details here:
viewtopic.php?f=12&t=19902&p=11209636#p11209636
You may use PNG instead.
Regards
Hans-Peter
I want to notice that hpwImage support for neopaint's STW format is neopaint 4 only.
Details here:
viewtopic.php?f=12&t=19902&p=11209636#p11209636
You may use PNG instead.
Regards
Hans-Peter
Hans-Peter
Re: Image Plugin - Simple drawing pane
Just upload a new hpwImage 2.55:
http://www.hpwsoft.de/anmeldung/html1/n ... book5.html
hpwScrollbar now resizes with its rectangle.
(Updating [RectangleName_MaxX]+[RectangleName_MaxY])
http://www.hpwsoft.de/anmeldung/html1/n ... book5.html
hpwScrollbar now resizes with its rectangle.
(Updating [RectangleName_MaxX]+[RectangleName_MaxY])
Hans-Peter
Re: Image Plugin - Simple drawing pane
Hans-Peter,
I'm very pleased to hear that!
I'm very pleased to hear that!
Greetings from Germany
Klaus
Klaus
Re: Image Plugin - Simple drawing pane
Just upload a new hpwImage 2.56:
http://www.hpwsoft.de/anmeldung/html1/n ... book5.html
Recompiled with updated Png-Library (Fix for hpwSimpleGraph)
Regards
http://www.hpwsoft.de/anmeldung/html1/n ... book5.html
Recompiled with updated Png-Library (Fix for hpwSimpleGraph)
Regards
Hans-Peter
Re: Image Plugin - Simple drawing pane
hpwSimpleGraph now supports PNG format ?Recompiled with updated Png-Library (Fix for hpwSimpleGraph)
Great news!
I am actively looking for a plugin capable of displaying .DDS (Direct Draw Surface) images files. Currently no plugin can do that. Do you know how to integrate this functionality into hpwImage ? Note that I do not want to convert and display, but just displaying image.dds in my NeoBook application.
Re: Image Plugin - Simple drawing pane
Hello,
As Dec said in the other thread: Dds is not so popular so even GraphicEx does not support it.
So it has to be researched if some Delphi code is available and how much it would add to the plugin.
And is it worth to do this effort?
Regards
As Dec said in the other thread: Dds is not so popular so even GraphicEx does not support it.
So it has to be researched if some Delphi code is available and how much it would add to the plugin.
And is it worth to do this effort?
Regards
Hans-Peter
Re: Image Plugin - Simple drawing pane
This is the only feature missing in my program : Displaying .DDS files !
Make a 3D software without DDS is like riding a bike without wheels
DDS files you do not seem popular, but without them, there would be no video game!
This is my dilemma.
I'll let you judge whether the effort is worth it ...
Make a 3D software without DDS is like riding a bike without wheels
DDS files you do not seem popular, but without them, there would be no video game!
This is my dilemma.
I'll let you judge whether the effort is worth it ...
Re: Image Plugin - Simple drawing pane
Hello,
I was asked how to draw freehand with hpwImage:
Make a new button on page 7 of the demo and paste the following code into it:
Make another new button on page 7 of the demo and paste the following code into it:
The first uses hpwImagePixels and makes gap when moving fast.
The second uses hpwImageDrawLine and draw a series of lines.
Regards
I was asked how to draw freehand with hpwImage:
Make a new button on page 7 of the demo and paste the following code into it:
Code: Select all
hpwImageCreate "RGetAreaImage" "SetVar [#34][#91]DrawOnMove[#93][#34] [#34]0[#34]" " " "" "If [#34][#91]DrawOnMove[#93][#34] [#34]=[#34] [#34]1[#34][#13][#10] hpwImagePixels [#34]RGetAreaImage[#34] [#34]RGetAreaImage_MoveX[#34] [#34]RGetAreaImage_MoveY[#34] [#34]clRed[#34][#13][#10]Endif[#13][#10]" "SetVar [#34][#91]DrawOnMove[#93][#34] [#34]1[#34]" "" ""
Code: Select all
hpwImageCreate "RGetAreaImage" "SetVar [#34][#91]DrawOnMove[#93][#34] [#34]0[#34]" " " "" "If [#34][#91]DrawOnMove[#93][#34] [#34]=[#34] [#34]1[#34][#13][#10] hpwImageDrawLine [#34]RGetAreaImage[#34] [#34][#91]LastX[#93][#34] [#34][#91]LastY[#93][#34] [#34]RGetAreaImage_MoveX[#34] [#34]RGetAreaImage_MoveY[#34] [#34]clRed[#34] [#34][#34] [#34]psSolid[#34][#13][#10] SetVar [#34][#91]LastX[#93][#34] [#34]RGetAreaImage_MoveX[#34][#13][#10] SetVar [#34][#91]LastY[#93][#34] [#34]RGetAreaImage_MoveY[#34][#13][#10]Endif[#13][#10]" "SetVar [#34][#91]DrawOnMove[#93][#34] [#34]1[#34][#13][#10]SetVar [#34][#91]LastX[#93][#34] [#34]RGetAreaImage_LDownX[#34][#13][#10]SetVar [#34][#91]LastY[#93][#34] [#34]RGetAreaImage_LDownY[#34][#13][#10]" "" ""
The second uses hpwImageDrawLine and draw a series of lines.
Regards
Hans-Peter
Re: Image Plugin - Simple drawing pane
Perfect Method 2 was great but first could be useful too.
Thanks you very much Hans, that's great.
Just need to study what you did.
Rob
Thanks you very much Hans, that's great.
Just need to study what you did.
Rob