Skip to content

yunate/ddimage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build and use

  1. Clone the repo.
  2. This sln depend on https://github.com/yunate/dd, so clone it in the same dir. The directory structure is roughly like the following:
your dir
|--- dd
|--- ddimage
|    |--- projects
|    |    |--- ddimage          // Output ddimage.lib
|    |    |--- ddimage_test     // Output ddimage_test.exe, there are some demos on how to use ddimage.
  1. ddimage depends on FreeImage and is managed using VCPKG, so you need to install VCPKG first:
git clone https://github.com/microsoft/vcpkg.git
bootstrap-vcpkg.bat
vcpkg integrate install
  1. Build dd first(https://github.com/yunate/dd).
  2. Open the ddimage.sln with Visual studio, and build it yourself.
  3. Add head file dir: dd\projects; ddimage\projects, and add the head file in your code #include "ddimage/ddimage.h"
  4. Add the library dir: dd\bin\$(Configuration)_$(PlatForm)\; ddimage\bin\$(Configuration)_$(PlatForm)\, and add the needed lib ddbase.lib; ddimage.lib.
  5. This project depends on FreeImage. Refer to projects\ddimage_test\vcpkg.json vcpkg-configuration.json files for configuring your FreeImage dependency, you can just copy those file to your own project dir, and configure VS with UseVcpkg set to true.
  6. You can refer to the demo in the test project for usage.

notes

  1. Due to the project's use of the STL library in its exported items, it is not recommended to directly send the header files and compiled lib/dll files to others for use. Instead, it is advised to compile and use them locally on your own machine.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages