yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
pixel_clipboard.cc File Reference
#include "app/editor/graphics/pixel_clipboard.h"
#include <limits>
#include <vector>
#include "absl/strings/str_format.h"
#include "absl/strings/str_join.h"
#include "util/indexed_png.h"
#include "util/macro.h"

Go to the source code of this file.

Namespaces

namespace  yaze
 
namespace  yaze::editor
 Editors are the view controllers for the application.
 

Functions

absl::StatusOr< std::vector< uint8_t > > yaze::editor::EncodeClipboardPng (const std::vector< uint8_t > &indices, int width, int height, const SheetColors &colors)
 
absl::StatusOr< ClipboardPaste > yaze::editor::MapClipboardPng (const std::vector< uint8_t > &png_bytes, const SheetColors &colors, int max_width, int max_height)
 
std::string yaze::editor::DescribeClipboardPaste (const ClipboardPaste &paste)
 "16x16: 200 kept" / "16x8: 90 exact, 38 remapped, 4 above color 7".