feat: generate images in desired size function added

This commit is contained in:
Sale Djenic 2022-04-06 13:11:02 +02:00 committed by saledjenic
parent 34acdba156
commit 06d52222ad
2 changed files with 7 additions and 0 deletions

View File

@ -324,3 +324,8 @@ proc switchFleet*(newFleet: string, configJSON: string): string =
var funcOut = go_shim.switchFleet(newFleet.cstring, configJSON.cstring)
defer: go_shim.free(funcOut)
return $funcOut
proc generateImages*(imagePath: string, aX: int, aY: int, bX: int, bY: int): string =
var funcOut = go_shim.generateImages(imagePath.cstring, aX.cint, aY.cint, bX.cint, bY.cint)
defer: go_shim.free(funcOut)
return $funcOut

View File

@ -132,3 +132,5 @@ proc getPasswordStrength*(paramsJSON: cstring): cstring {.importc: "GetPasswordS
proc getPasswordStrengthScore*(paramsJSON: cstring): cstring {.importc: "GetPasswordStrengthScore".}
proc switchFleet*(newFleet: cstring, configJSON: cstring): cstring{.importc: "SwitchFleet".}
proc generateImages*(imagePath: cstring, aX: cint, aY: cint, bX: cint, bY: cint): cstring {.importc: "GenerateImages".}