public static class TestFile.ImageTestFile extends TestFile.BinaryTestFile
TestFile.BinaryTestFile, TestFile.BytecodeProducer, TestFile.ByteProducer, TestFile.GradleTestFile, TestFile.ImageTestFile, TestFile.JarTestFile, TestFile.JavaTestFile, TestFile.ManifestTestFile, TestFile.PropertyTestFile
bytes, contents, sourceRelativePath, targetRelativePath, targetRootFolder
Constructor and Description |
---|
ImageTestFile(java.lang.String to,
int width,
int height) |
Modifier and Type | Method and Description |
---|---|
TestFile.ImageTestFile |
fill(int argb) |
TestFile.ImageTestFile |
fill(int x,
int y,
int width,
int height,
int argb) |
TestFile.ImageTestFile |
fillOval(int x,
int y,
int width,
int height,
int argb) |
TestFile.ImageTestFile |
format(java.lang.String format) |
byte[] |
getBinaryContents() |
TestFile.ImageTestFile |
text(int x,
int y,
java.lang.String s,
int argb) |
createFile, getContents, withSource
copy, from, to, withBytes, within
getTargetPath
public ImageTestFile(@NonNull java.lang.String to, int width, int height)
@NonNull public TestFile.ImageTestFile fill(int argb)
@NonNull public TestFile.ImageTestFile fill(int x, int y, int width, int height, int argb)
@NonNull public TestFile.ImageTestFile text(int x, int y, java.lang.String s, int argb)
public TestFile.ImageTestFile fillOval(int x, int y, int width, int height, int argb)
public byte[] getBinaryContents()
getBinaryContents
in class TestFile.BinaryTestFile
public TestFile.ImageTestFile format(java.lang.String format)