Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fafalone/wicdemo64
Windows Imaging Component Demo
https://github.com/fafalone/wicdemo64
twinbasic vb6 wic windows windows-graphics windows-imaging-component windows-shell
Last synced: about 6 hours ago
JSON representation
Windows Imaging Component Demo
- Host: GitHub
- URL: https://github.com/fafalone/wicdemo64
- Owner: fafalone
- License: mit
- Created: 2024-01-01T21:52:08.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-04-06T21:16:49.000Z (8 months ago)
- Last Synced: 2024-04-06T22:23:14.839Z (8 months ago)
- Topics: twinbasic, vb6, wic, windows, windows-graphics, windows-imaging-component, windows-shell
- Language: Visual Basic 6.0
- Homepage:
- Size: 6.05 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WICDemo64
Windows Imaging Component Demo![image](https://github.com/fafalone/WICDemo64/assets/7834493/63732210-15fe-4949-b516-f7194f050f87)
Thought I'd see if my WIC demo worked in tB. Happy to report the initial import of the VB6 project worked flawlessly. From there I rewrote for 64bit. Thought it's worth noting how much easier WinDevLib API modules make this: Rather than go through and update all the Win API defs, all I did was comment them out, letting WinDevLib take over those in addition to taking over the COM interfaces from oleexp. After a minor hiccup (major bug in WinDevLib.IStream, now fixed), all that needed to be modified was removing some oleexp. qualifiers, switching `GetObject` to `GetObjectW` since the intrinsic version was getting priority, and changing handles/pointers to `LongPtr`.
Attached is the 64bit port, and a zip with the original VB6 project and unmodified tB import.
**Update (Version 0.4, 06 Apr 2024):** - Bug fixes to work with latest WDL versions ([Issue #1](https://github.com/fafalone/WICDemo64/issues/1)). Fix save notification position.
**Update (Version 0.3, 03 Mar 2024):** Added BMP save option; also .twinproj has been updated to use a more recent version of WinDevLib (formerly tbShellLib) due to errors in the package tB did not raise at the time this project was released.
Original project page:
[[VB6] Intro to the Windows Imaging Component (WIC): Scale and convert JPG to PNG](https://www.vbforums.com/showthread.php?879907) (the attached version adds BMP as a supported save format)