MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / getTargetFormat

Function getTargetFormat

packages/core/image-source/index.android.ts:403–411  ·  view source on GitHub ↗
(format: 'png' | 'jpeg' | 'jpg')

Source from the content-addressed store, hash-verified

401}
402
403function getTargetFormat(format: 'png' | 'jpeg' | 'jpg'): android.graphics.Bitmap.CompressFormat {
404 switch (format) {
405 case 'jpeg':
406 case 'jpg':
407 return android.graphics.Bitmap.CompressFormat.JPEG;
408 default:
409 return android.graphics.Bitmap.CompressFormat.PNG;
410 }
411}
412
413function getRotationAngleFromFile(filename: string): number {
414 let result = 0;

Callers 2

saveToFileMethod · 0.85
toBase64StringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected