Lines Matching refs:Image
10 #include "ui/gfx/image/image.h"
13 // The two methods below archive and unarchive an image to and from a bag of
14 // bytes. There is no API on gfx::Image capable of doing it while preserving the
15 // scale of the image.
17 // Encode |image| to bytes, that can be decoded using the below |ImageForBytes|
19 scoped_refptr<base::RefCountedMemory> BytesForImage(const gfx::Image& image);
21 // Decode the image bytes encoded by the above |BytesForImage| function and
22 // returns a gfx::Image. If decoding fails, returns an empty image.
23 gfx::Image ImageForBytes(const scoped_refptr<base::RefCountedMemory>& data);