Jump to content

Recommended Posts

Posted (edited)

Sorry for the delays. I'm working on my school website and it's taking my whole time and attention. But, since it's holiday in Poland, I'm back here with the new version:

v4_alpha2.png

Changes in this version are:

  • Fixed selection problem (when you had multiple selections and tried to choose one of them in the Objects panel, vPaint crashed)
  • Added paths and a separate tool for creating and editing them.

 

vPaint 4 image editor

Note: Selections and paths are not saved in the V4I file for now.

Edited by scintilla4evr
Fixed screenshot
Posted

Hello @scintilla4evr

Again very good update.
I also have holiday a the same time :)

regards,
mLipok

 

btw.
Please fix your signature (spoiler)

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • 2 weeks later...
Posted

New version:

  • Added path-to-selection conversion (see path context menu in Objects panel)
  • Recompiled Interference and fixed some problems with it (now works on Windows 7)
  • Paths in the viewport are now antialiased
  • Paths can be hidden

v4_alpha3.png

vPaint 4 image editor

Posted

Another update:

  • Fixed selection and path behavior after cropping the image
  • Added path-to-layer conversion
  • Masking layers with paths
  • Fixed font problems (finally, I hope)

v4_3_9_10_1.jpg

vPaint 4 image editor

PS. @UEZ, can I use your BitmapApplyFilter UDF in vPaint, please? Your name will be written all over the About window.

Posted (edited)
  On 7/9/2016 at 8:17 PM, scintilla4evr said:

PS. @UEZ, can I use your BitmapApplyFilter UDF in vPaint, please? Your name will be written all over the About window.

Expand  

Sure, that's the reason why I published it. ^_^ Further I came also to my mind with your script...

I will release in a few minutes the latest version with two additional blur filter.

 

Edit: the GUI seems to work now. :thumbsup:

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Posted (edited)
  On 7/9/2016 at 8:22 PM, UEZ said:

Edit: the GUI seems to work now. :thumbsup:

Expand  

FINALLY!

Another update for today:

  • Layer renaming and opacity (right-click the layer in the list and select 'Layer options')
  • Layer blending modes (SLOW AS HELL!)

v4_3_9_10_2.jpg

 

vPaint 4 image editor

PS. UEZ's BitmapApplyFilter UDF seems to have problems with vPaint. I'll try to tackle that tomorrow.

Edit: I've just noticed that 'Objects' is 'About...' in the right pane. I'll fix that in the next update. Fixed.

Edited by scintilla4evr
Posted

Update time:

  • Blending modes now support opacity
  • Added channel routing (only for Normal blending mode, available in the layer context menu)

v4_3_9_10_3.jpg

vPaint 4 image editor

Posted
  On 7/9/2016 at 9:04 PM, scintilla4evr said:

PS. UEZ's BitmapApplyFilter UDF seems to have problems with vPaint. I'll try to tackle that tomorrow.

Expand  

Any update on this issue?

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Posted
  On 7/15/2016 at 5:12 PM, UEZ said:

Any update on this issue?

Expand  

Still no idea why your DLL causes vPaint to crash. I think I'll make another DLL to call your DLL to check if it will work. In the end, I'll end up drowning in a sea of DLLs.

Posted (edited)

How you are calling the functions? Be careful with the last parameter which returns either a GDI+ or GDI bitmap!

If you are going to use GDI with GDI+ or vice versa your script will crash!

 

In my examples the returned bitmaps are always GDI format!

 

 

Btw, vPaint is very unstable - it crashes very often. :mellow:

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Posted

It turns out, that the DLL doesn't work when it is not in the same directory as the main script is.

And the day when vPaint will not crash, will be the day when a giant pink meteorite will hit the moon and turn it into a daffodil.

Posted
  On 7/15/2016 at 7:18 PM, scintilla4evr said:

 

It turns out, that the DLL doesn't work when it is not in the same directory as the main script is.

 

Expand  

You can add the path to the DLL in _GDIPlus_BitmapApplyFilter_Open(<path to DLL>) function. Have you tried it?

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Posted
  On 7/15/2016 at 7:35 PM, UEZ said:

You can add the path to the DLL in _GDIPlus_BitmapApplyFilter_Open(<path to DLL>) function. Have you tried it?

Expand  

Yes. I examined the code more closely and it turns out that the problem was somewhere else. It was the fact that vPaint loads bundled GDI+ DLL from Data\Libraries.

Posted

3.9.12:

  • Layers and paths now are properly saved in the V4I file
  • New color picker
  • Paths as layers
  • Collapsible sections in Objects panel

v4_3_9_12.jpg

vPaint 4 image editor

PS. New V4I format is not backwards compatible with the previous one.

Posted

In this function:

Func _D2D1_CreateStrokeStyle($oFactory, $oProperties, $aDashes = 0)
    If IsArray($aDashes) Then
        Local $tDashes = __D2D1_CreateDashes($aDashes)
        $tDashes = $tDashes()
        Local $iDashCount = $aDashes[0]
    Else
        Local $tDashes = 0
        Local $iDashCount = 0
    EndIf
    Local $aCall = $oFactory.CreateStrokeStyle($oProperties(), $tDashes, $iDashCount, 0)

    Return $aCall[4]
EndFunc

You redeclaring the same variable.

Tryt to change code like this:

Func _D2D1_CreateStrokeStyle($oFactory, $oProperties, $aDashes = 0)
    Local $tDashes = 0
    Local $iDashCount = 0
    If IsArray($aDashes) Then
        $tDashes = __D2D1_CreateDashes($aDashes)
        $tDashes = $tDashes()
        $iDashCount = $aDashes[0]
    EndIf
    
    Local $aCall = $oFactory.CreateStrokeStyle($oProperties(), $tDashes, $iDashCount, 0)

    Return $aCall[4]
EndFunc

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

And some errors:
 

  Quote

"C:\Users\user\Downloads\26-07-2016 (3.9.12)\Base\Utilities.au3" (20) : ==> Recursion level has been exceeded - AutoIt will quit to prevent stack overflow.:

Expand  
  Quote

"C:\Users\user\Downloads\26-07-2016 (3.9.12)\Base\Drawing\Tools\Brush.au3" (60) : ==> Variable used without being declared.:

Expand  
  Quote

!>19:48:59 AutoIt3.exe ended.rc:255

Expand  

The last error is related to MagicWand selection tool.

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 7/26/2016 at 5:51 PM, mLipok said:

And some errors:
 

The last error is related to MagicWand selection tool.

 

Expand  

Oh yes, I have to make this function iterative, because of the maximum recursion level in Au3 (it was 3800 I think).

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...