Current section
Files
Jump to
Current section
Files
lib/vivid/png/frame.ex
defimpl Vivid.PNG, for: Vivid.Frame do
alias Vivid.{PNG, Frame}
@moduledoc false
@doc false
@spec to_png(Frame.t, Path.t) :: :ok | {:error, any}
def to_png(frame, file) do
frame
|> Frame.buffer(:horizontal)
|> PNG.to_png(file)
end
end