PhotoDemon plug-in program using VBA? #631
Unanswered
lin-yan-cheng
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I use Corel PHOTO-PAINT 2019 VBA to develop a GMS project, I hope to use it for PhotoDemon users, although I am not a professional programmer, but at least I try to make the program as good as possible, it should not be useless.
Demonstration of CPT_Custom_Mask project:
https://youtu.be/mFy5RdcWC_8
I asked:
Is there a way to convert the Corel PHOTO-PAINT auxiliary program into a PhotoDemon plug-in program using VBA? Because PhotoDemon is developed in VB.
Copilot replied:
It is indeed possible to convert the Corel PHOTO-PAINT helper program developed in VBA to a PhotoDemon plug-in, because PhotoDemon is also developed in VB (Visual Basic). This means you can reuse existing VBA code to a certain extent, but will still need to make some adjustments and modifications to fit PhotoDemon's API and plug-in architecture.
Here are some steps and suggestions to help you make the switch:
Understand PhotoDemon's plug-in architecture: You need to understand PhotoDemon's API and plug-in development guide. This way you can better adapt your existing code to PhotoDemon.
Refactor VBA code: Refactor your VBA code into standard VB code. This may include converting VBA-specific functions and objects to standard VB or PhotoDemon-provided objects and methods.
Using the PhotoDemon API: Replace all Corel PHOTO-PAINT related API calls with the corresponding PhotoDemon API calls. This may require consulting PhotoDemon's documentation to find the corresponding function.
Test and tweak: Test your plug-in in PhotoDemon to make sure everything is working properly. This process may require many adjustments and corrections.
Documentation and Support: Leverage the developer resources and community provided by PhotoDemon for support and advice.
Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions