Giter VIP home page Giter VIP logo

skinlib's Introduction

SkinTool

pmmp virion

English

한국어

API -English

Get ImageTool

$imagetool = SkinTool::getImageTool(strig $input, $type);

For $type, SkinTool::IMAGE_TYPE_PATH or SkinTool::IMAGE_TYPE_DATA. SkinTool::IMAGE_TYPE_PATH is specified by default.

Saving an Image

$imagetool->saveImg($path);

Use to store acquired or modified images.

Combining images

$imagetool->mergeImage(ImageTool $image);

Combine the image specified in $imagetool with the image specified in $image.

image conversion to skin data

$imagetool->getSkinData();

image resize

$imagetool->resize(int $width, int $height);

Combining Modeling

$modelManager1 = SkinTool::getModelTool(string $model1, $mode);
$modelManager2 = SkinTool::getModelTool(string $model2, $mode);
$result = $modelManager1->mergeModel($modelManager2);
$json = $result->getJson();

For $type, SkinTool::MODEL_TYPE_PATH or SkinTool:MODEL_TYPE_JSON. SkinTool::MODEL_TYPE_JSON is specified by default.


API -Korean

ImageTool 불러오기

$imagetool = SkinTool::getImageTool(string $input, $type);

$type에는 SkinTool::IMAGE_TYPE_PATH 또는 SkinTool::IMAGE_TYPE_DATA를 사용하시면 됩니다. 기본값은 SkinTool::IMAGE_TYPE_PATH입니다.

이미지 저장하기

$skintool->saveImg($path);

얻은 이미지나 수정한 이미지를 저장할때 사용합니다. 동일명의 파일이 있을 경우 오류가 발생 할 수 있습니다. 주의하여 사용해 주세요.

이미지 합치기

$imagetool->mergeImage(ImageTool $image);

2개의 이미지를 합칩니다.

이미지 스킨데이터로 변환

$imagetool->getSkinData();

이미지 크기 조절

$skintool->resize(int $width, int $height);

모델링 합성하기

$modelManager1 = SkinTool::getModelTool(string $model1, $mode);
$modelManager2 = SkinTool::getModelTool(string $model2, $mode);
$result = $modelManager1->mergeModel($modelManager2);
$json = $result->getJson();

$type에는 SkinTool::MODEL_TYPE_PATH 와 SkinTool::MODEL_TYPE_JSON 중 상황에 맞게 입력하세요. SkinTool::MODEL_TYPE_JSON이 기본값으로 지정되어 있습니다.

skinlib's People

Contributors

poggit-bot avatar sky-min avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

pixals-bedrock

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.