-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename the project (image.sk) to imagesk
All GitHub links will redirect to the new URL
- Loading branch information
1 parent
ae9ce71
commit e6a88f8
Showing
34 changed files
with
56 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import: | ||
java.awt.Color | ||
java.awt.image.BufferedImage | ||
java.io.File as JavaFile | ||
java.net.URLClassLoader | ||
java.nio.file.Files | ||
java.nio.file.Path | ||
java.nio.file.Paths | ||
|
||
com.btk5h.skriptmirror.LibraryLoader | ||
|
||
function imagesk_pixelColor(image: object, x: number, y: number) :: object: | ||
set {_rgb} to {_image}.getRGB({_x} and {_y}) | ||
return new Color((bits 16-23 of {_rgb}), (bits 8-15 of {_rgb}) and (bits 0-7 of {_rgb})) | ||
|
||
function imagesk_setPixelColor(image: object, x: number, y: number, rgb: number): | ||
{_image}.setRGB({_x}, {_y} and {_rgb}) | ||
|
||
function imagesk_copiedImage(image: object) :: object: | ||
return new BufferedImage(({_image}.getColorModel()), ({_image}.copyData(null)), ({_image}.isAlphaPremultiplied()) and null) | ||
|
||
function imagesk_loadClass(path: text, name: text) :: javaobject: | ||
replace all "/" and "\" with JavaFile.separator! in {_path} | ||
set {_path} to Paths.get({_path}) | ||
if Files.isDirectory({_path}): | ||
set {_cl} to new URLClassLoader([{_path}.toFile().toURI().toURL()]) | ||
set {_class} to {_cl}.loadClass({_name}) | ||
broadcast "%{_class}%" | ||
broadcast "%{_class}.getClass()%" | ||
broadcast "%method names of {_class}%" | ||
broadcast "%constructors of {_class}%" | ||
return {_class} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
image.sk/elements/effects/CreateImage.sk → imagesk/elements/effects/CreateImage.sk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
image.sk/elements/effects/CreateImageText.sk → imagesk/elements/effects/CreateImageText.sk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
image.sk/elements/effects/ResizeImage.sk → imagesk/elements/effects/ResizeImage.sk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
image.sk/elements/effects/WrıteText.sk → imagesk/elements/effects/WrıteText.sk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...lements/expressions/Base64EncodedImage.sk → ...lements/expressions/Base64EncodedImage.sk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
image.sk/elements/expressions/Color.sk → imagesk/elements/expressions/Color.sk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ts/expressions/ImageText/AllImageTexts.sk → ...ts/expressions/ImageText/AllImageTexts.sk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...xpressions/ImageText/ImageTextProperty.sk → ...xpressions/ImageText/ImageTextProperty.sk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../expressions/ImageText/ImageTextWithID.sk → .../expressions/ImageText/ImageTextWithID.sk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
image.sk/elements/expressions/Sizes.sk → imagesk/elements/expressions/Sizes.sk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters