Closed hmf closed 10 months ago
I was looking through the code and found def write[A](file: File, frame: Frame, picture: Picture[A]): IO[A] . This seems to work:
val out1 = os.pwd / "circle.png"
picture.write[Png](out1.toIO, frame)
So my error. VSCode IDE intellisense does not show WriterOpsHelper
and WriterIOOpsHelper
methods unless I specifically look for the apply
method.
Apologies for the noise. Closing.
I am trying to generate a sequence of images with a specific size. The size is required because these images will be used for machine learning. I used the following code do set up and draw on a frame:
The output to screen seems to be what I want. However, when I save this picture the file seems to contain a cropped image with a give margin. Here is what I do:
My question is, how can I save the picture with the
Frame
size? Note that I also need to generate images were shapes appear in random positions and may be clipped if too close to the border.TIA