| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
<!DOCTYPE html> |
| 8 |
<html lang="en"> |
| 9 |
<head> |
| 10 |
<title>GExiv2.PreviewImage</title> |
| 11 |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
| 12 |
|
| 13 |
<meta charset="utf-8" /> |
| 14 |
|
| 15 |
|
| 16 |
<meta property="og:type" content="website"/> |
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
<meta property="og:title" content="GExiv2.PreviewImage"/> |
| 22 |
<meta property="og:description" content="Reference for GExiv2.PreviewImage"/> |
| 23 |
<meta name="twitter:title" content="GExiv2.PreviewImage"/> |
| 24 |
<meta name="twitter:description" content="Reference for GExiv2.PreviewImage"/> |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
<meta name="twitter:card" content="summary"/> |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
<link rel="stylesheet" href="style.css" type="text/css" /> |
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
<script src="urlmap.js"></script> |
| 41 |
|
| 42 |
|
| 43 |
<script src="fzy.js"></script> |
| 44 |
<script src="search.js"></script> |
| 45 |
|
| 46 |
<script src="main.js"></script> |
| 47 |
|
| 48 |
|
| 49 |
</head> |
| 50 |
|
| 51 |
<body> |
| 52 |
<div id="body-wrapper" tabindex="-1"> |
| 53 |
|
| 54 |
<nav class="sidebar devhelp-hidden"> |
| 55 |
|
| 56 |
|
| 57 |
<div class="search section"> |
| 58 |
<form id="search-form" autocomplete="off"> |
| 59 |
<input id="search-input" type="text" name="do-not-autocomplete" placeholder="Click, or press 's' to search" autocomplete="off"/> |
| 60 |
</form> |
| 61 |
</div> |
| 62 |
|
| 63 |
<div class="section namespace"> |
| 64 |
<h3><a href="index.html">GExiv2</a></h3> |
| 65 |
<p>API Version: 0.16</p> |
| 66 |
|
| 67 |
<p>Library Version: 0.16.2</p> |
| 68 |
|
| 69 |
</div> |
| 70 |
|
| 71 |
<div class="section"> |
| 72 |
<h5>Type</h5> |
| 73 |
<div class="links"> |
| 74 |
<a class="current" href="class.PreviewImage.html#description">PreviewImage</a> |
| 75 |
</div> |
| 76 |
</div> |
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
<div class="section"> |
| 87 |
<h5>Instance methods</h5> |
| 88 |
<div class="links"> |
| 89 |
|
| 90 |
<a class="method" href="method.PreviewImage.get_data.html">get_data</a> |
| 91 |
|
| 92 |
<a class="method" href="method.PreviewImage.get_extension.html">get_extension</a> |
| 93 |
|
| 94 |
<a class="method" href="method.PreviewImage.get_height.html">get_height</a> |
| 95 |
|
| 96 |
<a class="method" href="method.PreviewImage.get_mime_type.html">get_mime_type</a> |
| 97 |
|
| 98 |
<a class="method" href="method.PreviewImage.get_width.html">get_width</a> |
| 99 |
|
| 100 |
<a class="method" href="method.PreviewImage.try_write_file.html">try_write_file</a> |
| 101 |
|
| 102 |
<a class="method" href="method.PreviewImage.write_file.html">write_file</a> |
| 103 |
|
| 104 |
</div> |
| 105 |
</div> |
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
|
| 120 |
|
| 121 |
|
| 122 |
<div class="section generator"> |
| 123 |
<p>Generated by <a href="https://gitlab.gnome.org/GNOME/gi-docgen">gi-docgen</a> 2025.5</p> |
| 124 |
</div> |
| 125 |
</nav> |
| 126 |
|
| 127 |
<button id="btn-to-top" class="hidden"><span class="up-arrow"></span></button> |
| 128 |
|
| 129 |
|
| 130 |
<section id="main" class="content"> |
| 131 |
<header> |
| 132 |
<h3>Class</h3> |
| 133 |
<h1 aria-label="Name"><a href="index.html">GExiv2</a><span class="sep" role="presentation"></span>PreviewImage</h1> |
| 134 |
</header> |
| 135 |
|
| 136 |
<section> |
| 137 |
<summary> |
| 138 |
<div class="docblock"> |
| 139 |
<p></p> |
| 140 |
</div> |
| 141 |
|
| 142 |
<div class="toggle-wrapper"> |
| 143 |
<h4 id="description" style="display:flex;"> |
| 144 |
Description |
| 145 |
<a href="#description" class="anchor"></a> |
| 146 |
|
| 147 |
<a class="srclink" title="go to source location" href="https://gitlab.gnome.org/GNOME/gexiv2/-/blob/gexiv2/gexiv2-preview-image.h#L22">[src]</a> |
| 148 |
|
| 149 |
</h4> |
| 150 |
|
| 151 |
<pre><code>final class GExiv2.PreviewImage : GObject.Object |
| 152 |
{ |
| 153 |
/* No available fields */ |
| 154 |
}</pre></code> |
| 155 |
|
| 156 |
<div class="docblock"> |
| 157 |
<p>An accessor to the preview images contained in the image’s metadata.</p> |
| 158 |
<p>This could be anything from a thumbnail to a full-sized camera development |
| 159 |
of a <span class="caps">RAW</span> image.</p> |
| 160 |
<p>The <code>GExiv2PreviewImage</code> is obtained by calling <code>gexiv2_metadata_get_preview_image()</code> |
| 161 |
with an instance of <code>GExiv2PreviewProperties</code> that are describing the image |
| 162 |
to be fetched.</p> |
| 163 |
<div class="codehilite"><pre><span></span><code><span class="n">GExiv2PreviewProperties</span><span class="w"> </span><span class="o">**</span><span class="n">properties</span><span class="p">,</span><span class="w"> </span><span class="o">**</span><span class="n">it</span><span class="p">;</span> |
| 164 |
<span class="n">properties</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">it</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gexiv2_metadata_get_preview_properties</span><span class="p">(</span><span class="n">metadata</span><span class="p">);</span> |
| 165 |
|
| 166 |
<span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">it</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> |
| 167 |
<span class="w"> </span><span class="n">preview_image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gexiv2_metadata_get_preview_image</span><span class="p">(</span><span class="n">metadata</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">it</span><span class="p">);</span> |
| 168 |
<span class="w"> </span><span class="n">it</span><span class="o">++</span><span class="p">;</span> |
| 169 |
<span class="p">}</span> |
| 170 |
</code></pre></div> |
| 171 |
</div> |
| 172 |
|
| 173 |
<div class="docblock"> |
| 174 |
|
| 175 |
|
| 176 |
|
| 177 |
</div> |
| 178 |
|
| 179 |
|
| 180 |
</div> |
| 181 |
</summary> |
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
|
| 186 |
<div class="toggle-wrapper ancestors"> |
| 187 |
<h4 id="ancestors"> |
| 188 |
Ancestors |
| 189 |
<a href="#ancestors" class="anchor"></a> |
| 190 |
</h4> |
| 191 |
|
| 192 |
<div class="docblock"> |
| 193 |
<ul> |
| 194 |
|
| 195 |
|
| 196 |
<li class="class"><a class="external" href="javascript:void(0)" data-link="class.Object.html" data-namespace="GObject">GObject</a></li> |
| 197 |
|
| 198 |
|
| 199 |
</ul> |
| 200 |
</div> |
| 201 |
</div> |
| 202 |
|
| 203 |
|
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
|
| 209 |
|
| 210 |
|
| 211 |
|
| 212 |
|
| 213 |
<div class="toggle-wrapper methods"> |
| 214 |
<h4 id="methods"> |
| 215 |
Instance methods |
| 216 |
<a href="#methods" class="anchor"></a> |
| 217 |
</h4> |
| 218 |
|
| 219 |
<div class="docblock"> |
| 220 |
|
| 221 |
<div class=""> |
| 222 |
<h6><a href="method.PreviewImage.get_data.html">gexiv2_preview_image_get_data</a></h6> |
| 223 |
<div class="docblock"> |
| 224 |
<p>Get a pointer to the image data of the preview image. The returned data is |
| 225 |
owned by the preview image and must not be freed.</p> |
| 226 |
</div> |
| 227 |
<div class="docblock"> |
| 228 |
<p></p> |
| 229 |
</div> |
| 230 |
</div> |
| 231 |
|
| 232 |
<div class=""> |
| 233 |
<h6><a href="method.PreviewImage.get_extension.html">gexiv2_preview_image_get_extension</a></h6> |
| 234 |
<div class="docblock"> |
| 235 |
<p>Get the file extension commonly associated with the preview image.</p> |
| 236 |
</div> |
| 237 |
<div class="docblock"> |
| 238 |
<p></p> |
| 239 |
</div> |
| 240 |
</div> |
| 241 |
|
| 242 |
<div class=""> |
| 243 |
<h6><a href="method.PreviewImage.get_height.html">gexiv2_preview_image_get_height</a></h6> |
| 244 |
<div class="docblock"> |
| 245 |
<p>Get the height in pixels.</p> |
| 246 |
</div> |
| 247 |
<div class="docblock"> |
| 248 |
<p></p> |
| 249 |
</div> |
| 250 |
</div> |
| 251 |
|
| 252 |
<div class=""> |
| 253 |
<h6><a href="method.PreviewImage.get_mime_type.html">gexiv2_preview_image_get_mime_type</a></h6> |
| 254 |
<div class="docblock"> |
| 255 |
<p>Get the <span class="caps">MIME</span> type associated with the preview image.</p> |
| 256 |
</div> |
| 257 |
<div class="docblock"> |
| 258 |
<p></p> |
| 259 |
</div> |
| 260 |
</div> |
| 261 |
|
| 262 |
<div class=""> |
| 263 |
<h6><a href="method.PreviewImage.get_width.html">gexiv2_preview_image_get_width</a></h6> |
| 264 |
<div class="docblock"> |
| 265 |
<p>Get the width in pixels.</p> |
| 266 |
</div> |
| 267 |
<div class="docblock"> |
| 268 |
<p></p> |
| 269 |
</div> |
| 270 |
</div> |
| 271 |
|
| 272 |
<div class="deprecated"> |
| 273 |
<h6><a href="method.PreviewImage.try_write_file.html">gexiv2_preview_image_try_write_file</a></h6> |
| 274 |
<div class="docblock"> |
| 275 |
<p>Write the preview image to a file in <code>path</code>.</p> |
| 276 |
</div> |
| 277 |
<div class="docblock"> |
| 278 |
<p><span class="emblem deprecated">deprecated: 0.16.0</span> <span class="emblem available">since: 0.14.0</span></p> |
| 279 |
</div> |
| 280 |
</div> |
| 281 |
|
| 282 |
<div class=""> |
| 283 |
<h6><a href="method.PreviewImage.write_file.html">gexiv2_preview_image_write_file</a></h6> |
| 284 |
<div class="docblock"> |
| 285 |
<p>Write the preview image to a file in <code>path</code>.</p> |
| 286 |
</div> |
| 287 |
<div class="docblock"> |
| 288 |
<p><span class="emblem available">since: 0.16.0</span></p> |
| 289 |
</div> |
| 290 |
</div> |
| 291 |
|
| 292 |
</div> |
| 293 |
|
| 294 |
|
| 295 |
|
| 296 |
<div class="toggle-wrapper default-hide ancestor-methods"><h5 style="display:block;">Methods inherited from <a class="external" href="javascript:void(0)" data-link="class.Object.html" data-namespace="GObject">GObject</a> (43)</h5> |
| 297 |
<div class="docblock"> |
| 298 |
|
| 299 |
<div class="docblock"> |
| 300 |
<p>Please see <a class="external" href="javascript:void(0)" data-link="class.Object.html#methods" data-namespace="GObject">GObject</a> for a full list of methods.</em></p> |
| 301 |
</div> |
| 302 |
|
| 303 |
</div> |
| 304 |
</div> |
| 305 |
|
| 306 |
|
| 307 |
|
| 308 |
|
| 309 |
</div> |
| 310 |
|
| 311 |
|
| 312 |
|
| 313 |
|
| 314 |
|
| 315 |
<div class="signals toggle-wrapper"> |
| 316 |
<h4 id="signals"> |
| 317 |
Signals |
| 318 |
<a href="#signals" class="anchor"></a> |
| 319 |
</h4> |
| 320 |
|
| 321 |
|
| 322 |
|
| 323 |
|
| 324 |
|
| 325 |
<div class="toggle-wrapper default-hide ancestor-signals"><h5 style="display:block;">Signals inherited from <a class="external" href="javascript:void(0)" data-link="class.Object.html" data-namespace="GObject">GObject</a> (1)</h5> |
| 326 |
<div class="docblock"> |
| 327 |
<h6><a class="external" href="javascript:void(0)" data-namespace="GObject" data-link="signal.Object.notify.html">GObject::notify</a></h6> |
| 328 |
<div class="docblock"> |
| 329 |
<p>The notify signal is emitted on an object when one of its properties has |
| 330 |
its value set through g_object_set_property(), g_object_set(), et al.</p> |
| 331 |
</div> |
| 332 |
</div> |
| 333 |
</div> |
| 334 |
|
| 335 |
|
| 336 |
|
| 337 |
|
| 338 |
|
| 339 |
</div> |
| 340 |
|
| 341 |
|
| 342 |
|
| 343 |
<div class="class toggle-wrapper default-hide"> |
| 344 |
<h4 id="class-struct"> |
| 345 |
Class structure |
| 346 |
<a href="#class-struct" class="anchor"></a> |
| 347 |
</h4> |
| 348 |
|
| 349 |
<div class="docblock"> |
| 350 |
<pre><code>struct GExiv2PreviewImageClass { |
| 351 |
GObjectClass parent_class; |
| 352 |
|
| 353 |
}</code></pre> |
| 354 |
</div> |
| 355 |
|
| 356 |
<div class="docblock"> |
| 357 |
<p>No description available.</p> |
| 358 |
</div> |
| 359 |
|
| 360 |
|
| 361 |
<div class="docblock"> |
| 362 |
<h6>Class members</h6> |
| 363 |
|
| 364 |
<dl class="members"> |
| 365 |
|
| 366 |
<dt><code>parent_class: GObjectClass</code></dt> |
| 367 |
<dd><p>No description available.</p></dd> |
| 368 |
|
| 369 |
</dd> |
| 370 |
</div> |
| 371 |
|
| 372 |
</div> |
| 373 |
|
| 374 |
|
| 375 |
|
| 376 |
|
| 377 |
|
| 378 |
|
| 379 |
</section> |
| 380 |
</section> |
| 381 |
|
| 382 |
|
| 383 |
|
| 384 |
<div id="toc" class="toc"> |
| 385 |
<nav aria-labelledby="toc-title"> |
| 386 |
<p id="toc-title">Content</p> |
| 387 |
<ul class="toc-list"> |
| 388 |
<li class="toc-list-item"><a href="#description"><span class="link-text">Description</span></a></li> |
| 389 |
|
| 390 |
|
| 391 |
|
| 392 |
<li class="toc-list-item"><a href="#ancestors"><span class="link-text">Ancestors</span></a></li> |
| 393 |
|
| 394 |
|
| 395 |
|
| 396 |
|
| 397 |
|
| 398 |
|
| 399 |
|
| 400 |
<li class="toc-list-item"><a href="#methods"><span class="link-text">Methods</span></a></li> |
| 401 |
|
| 402 |
|
| 403 |
|
| 404 |
|
| 405 |
|
| 406 |
|
| 407 |
|
| 408 |
|
| 409 |
|
| 410 |
|
| 411 |
</ul> |
| 412 |
</nav> |
| 413 |
</div> |
| 414 |
|
| 415 |
|
| 416 |
<section id="search" class="content hidden"></section> |
| 417 |
|
| 418 |
<footer> |
| 419 |
|
| 420 |
</footer> |
| 421 |
</div> |
| 422 |
</body> |
| 423 |
</html> |