项目作者: das-mensch

项目描述 :
Slice image evenly by given parameters
高级语言: C
项目地址: git://github.com/das-mensch/sdl-image-slicer.git
创建时间: 2019-06-18T14:20:06Z
项目社区:https://github.com/das-mensch/sdl-image-slicer

开源协议:MIT License

下载


sdl-image-slicer

Slice Images by given parameters evenly

Dependencies

  • libsdl2-dev
  • libsdl2-image-dev

Installation

Just run the build script

  1. ./build.sh

You may want to copy the binary to your local bin directory.

Usage

  1. # sdl-slicer "/path/to/image" <h-slice-count> <v-slice-count>
  2. sdl-slicer "some-image.png" 2 2
  3. # This will split the image evenly into 4 new images which will be saved
  4. # as "some-image-0.png" through "some-image-3.png" respectively, starting
  5. # from the upper left to the lower right.