141 lines
6.8 KiB
HTML
141 lines
6.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
|
|
<meta name="description" content="API docs for the fromBytes method from the BitmapDescriptor class, for the Dart programming language.">
|
|
<title>fromBytes method - BitmapDescriptor class - amap_map library - Dart API</title>
|
|
|
|
|
|
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet">
|
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
|
<link rel="stylesheet" href="../../static-assets/github.css">
|
|
<link rel="stylesheet" href="../../static-assets/styles.css">
|
|
<link rel="icon" href="../../static-assets/favicon.png">
|
|
|
|
</head>
|
|
|
|
<body data-base-href="../../"
|
|
data-using-base-href="false">
|
|
|
|
<div id="overlay-under-drawer"></div>
|
|
|
|
<header id="title">
|
|
<button id="sidenav-left-toggle" type="button"> </button>
|
|
<ol class="breadcrumbs gt-separated dark hidden-xs">
|
|
<li><a href="../../index.html">amap_map</a></li>
|
|
<li><a href="../../amap_map/amap_map-library.html">amap_map</a></li>
|
|
<li><a href="../../amap_map/BitmapDescriptor-class.html">BitmapDescriptor</a></li>
|
|
<li class="self-crumb">fromBytes method</li>
|
|
</ol>
|
|
<div class="self-name">fromBytes</div>
|
|
<form class="search navbar-right" role="search">
|
|
<input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
|
|
</form>
|
|
</header>
|
|
|
|
<main>
|
|
|
|
<div id="dartdoc-sidebar-left" class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
|
|
<header id="header-search-sidebar" class="hidden-l">
|
|
<form class="search-sidebar" role="search">
|
|
<input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
|
|
</form>
|
|
</header>
|
|
|
|
<ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
|
|
<li><a href="../../index.html">amap_map</a></li>
|
|
<li><a href="../../amap_map/amap_map-library.html">amap_map</a></li>
|
|
<li><a href="../../amap_map/BitmapDescriptor-class.html">BitmapDescriptor</a></li>
|
|
<li class="self-crumb">fromBytes method</li>
|
|
</ol>
|
|
|
|
<h5>BitmapDescriptor class</h5>
|
|
<ol>
|
|
|
|
|
|
<li class="section-title inherited">
|
|
<a href="../../amap_map/BitmapDescriptor-class.html#instance-properties">Properties</a>
|
|
</li>
|
|
<li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/hashCode.html">hashCode</a></li>
|
|
<li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/runtimeType.html">runtimeType</a></li>
|
|
|
|
<li class="section-title"><a href="../../amap_map/BitmapDescriptor-class.html#instance-methods">Methods</a></li>
|
|
<li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/noSuchMethod.html">noSuchMethod</a></li>
|
|
<li><a href="../../amap_map/BitmapDescriptor/toMap.html">toMap</a></li>
|
|
<li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/toString.html">toString</a></li>
|
|
|
|
<li class="section-title inherited"><a href="../../amap_map/BitmapDescriptor-class.html#operators">Operators</a></li>
|
|
<li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/operator_equals.html">operator ==</a></li>
|
|
|
|
|
|
<li class="section-title"><a href="../../amap_map/BitmapDescriptor-class.html#static-methods">Static methods</a></li>
|
|
<li><a href="../../amap_map/BitmapDescriptor/defaultMarkerWithHue.html">defaultMarkerWithHue</a></li>
|
|
<li><a href="../../amap_map/BitmapDescriptor/fromAssetImage.html">fromAssetImage</a></li>
|
|
<li><a href="../../amap_map/BitmapDescriptor/fromBytes.html">fromBytes</a></li>
|
|
|
|
<li class="section-title"><a href="../../amap_map/BitmapDescriptor-class.html#constants">Constants</a></li>
|
|
<li><a href="../../amap_map/BitmapDescriptor/defaultMarker-constant.html">defaultMarker</a></li>
|
|
<li><a href="../../amap_map/BitmapDescriptor/hueAzure-constant.html">hueAzure</a></li>
|
|
<li><a href="../../amap_map/BitmapDescriptor/hueBlue-constant.html">hueBlue</a></li>
|
|
<li><a href="../../amap_map/BitmapDescriptor/hueCyan-constant.html">hueCyan</a></li>
|
|
<li><a href="../../amap_map/BitmapDescriptor/hueGreen-constant.html">hueGreen</a></li>
|
|
<li><a href="../../amap_map/BitmapDescriptor/hueMagenta-constant.html">hueMagenta</a></li>
|
|
<li><a href="../../amap_map/BitmapDescriptor/hueOrange-constant.html">hueOrange</a></li>
|
|
<li><a href="../../amap_map/BitmapDescriptor/hueRed-constant.html">hueRed</a></li>
|
|
<li><a href="../../amap_map/BitmapDescriptor/hueRose-constant.html">hueRose</a></li>
|
|
<li><a href="../../amap_map/BitmapDescriptor/hueViolet-constant.html">hueViolet</a></li>
|
|
<li><a href="../../amap_map/BitmapDescriptor/hueYellow-constant.html">hueYellow</a></li>
|
|
|
|
|
|
</ol>
|
|
</div><!--/.sidebar-offcanvas-->
|
|
|
|
<div id="dartdoc-main-content" class="col-xs-12 col-sm-9 col-md-8 main-content">
|
|
<div><h1><span class="kind-method">fromBytes</span> method </h1></div>
|
|
|
|
<section class="multi-line-signature">
|
|
<span class="returntype"><a href="../../amap_map/BitmapDescriptor-class.html">BitmapDescriptor</a></span>
|
|
<span class="name ">fromBytes</span>
|
|
(<wbr><ol class="parameter-list"><li><span class="parameter" id="fromBytes-param-byteData"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-typed_data/Uint8List-class.html">Uint8List</a></span> <span class="parameter-name">byteData</span></span></li>
|
|
</ol>)
|
|
|
|
</section>
|
|
<section class="desc markdown">
|
|
<p>根据将PNG图片转换后的二进制数据<code>byteData</code>创建BitmapDescriptor</p>
|
|
</section>
|
|
|
|
<section class="summary source-code" id="source">
|
|
<h2><span>Implementation</span></h2>
|
|
<pre class="language-dart"><code class="language-dart">static BitmapDescriptor fromBytes(Uint8List byteData) {
|
|
return BitmapDescriptor._(<dynamic>['fromBytes', byteData]);
|
|
}</code></pre>
|
|
</section>
|
|
|
|
</div> <!-- /.main-content -->
|
|
|
|
<div id="dartdoc-sidebar-right" class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
|
|
</div><!--/.sidebar-offcanvas-->
|
|
|
|
</main>
|
|
|
|
<footer>
|
|
<span class="no-break">
|
|
amap_map
|
|
1.1.0
|
|
</span>
|
|
|
|
</footer>
|
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
|
|
<script src="../../static-assets/typeahead.bundle.min.js"></script>
|
|
<script src="../../static-assets/highlight.pack.js"></script>
|
|
<script src="../../static-assets/URI.js"></script>
|
|
<script src="../../static-assets/script.js"></script>
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|