Home | History | Annotate | Download | only in dib
      1 // Copyright 2017 PDFium 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 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
      6 
      7 #ifndef CORE_FXGE_DIB_CFX_DIBEXTRACTOR_H_
      8 #define CORE_FXGE_DIB_CFX_DIBEXTRACTOR_H_
      9 
     10 #include "core/fxcrt/retain_ptr.h"
     11 #include "core/fxge/dib/cfx_dibitmap.h"
     12 
     13 class CFX_DIBSource;
     14 
     15 class CFX_DIBExtractor {
     16  public:
     17   explicit CFX_DIBExtractor(const RetainPtr<CFX_DIBSource>& pSrc);
     18   ~CFX_DIBExtractor();
     19 
     20   RetainPtr<CFX_DIBitmap> GetBitmap() { return m_pBitmap; }
     21 
     22  private:
     23   RetainPtr<CFX_DIBitmap> m_pBitmap;
     24 };
     25 
     26 #endif  // CORE_FXGE_DIB_CFX_DIBEXTRACTOR_H_
     27