初始化提交
This commit is contained in:
25
WebDriverAgentLib/Utilities/FBImageUtils.h
Normal file
25
WebDriverAgentLib/Utilities/FBImageUtils.h
Normal file
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* Copyright (c) 2015-present, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD-style license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
#import <XCTest/XCTest.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/*! Returns YES if the data contains a PNG image */
|
||||
BOOL FBIsPngImage(NSData *imageData);
|
||||
|
||||
/*! Converts the given image data to a PNG representation if necessary */
|
||||
NSData *_Nullable FBToPngData(NSData *imageData);
|
||||
|
||||
/*! Returns YES if the data contains a JPG image */
|
||||
BOOL FBIsJpegImage(NSData *imageData);
|
||||
|
||||
/*! Converts the given image data to a JPG representation if necessary */
|
||||
NSData *_Nullable FBToJpegData(NSData *imageData, CGFloat compressionQuality);
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Reference in New Issue
Block a user