1 // Copyright 2013 The Flutter Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef FLUTTER_LIB_UI_PAINTING_IMAGE_ENCODING_H_ 6 #define FLUTTER_LIB_UI_PAINTING_IMAGE_ENCODING_H_ 7 8 #include "flutter/lib/ui/dart_wrapper.h" 9 namespace flutter { 10 11 class CanvasImage; 12 13 Dart_Handle EncodeImage(CanvasImage* canvas_image, 14 int format, 15 Dart_Handle callback_handle); 16 17 } // namespace flutter 18 19 #endif // FLUTTER_LIB_UI_PAINTING_IMAGE_ENCODING_H_ 20