1e41f4b71Sopenharmony_ci# drawing_sampling_options.h 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci 4e41f4b71Sopenharmony_ci## Overview 5e41f4b71Sopenharmony_ci 6e41f4b71Sopenharmony_ciThe **drawing_sampling_options.h** file declares the functions related to sampling in the drawing module. It is used for image or texture sampling. 7e41f4b71Sopenharmony_ci 8e41f4b71Sopenharmony_ci**File to include**: <native_drawing/drawing_sampling_options.h> 9e41f4b71Sopenharmony_ci 10e41f4b71Sopenharmony_ci**Library**: libnative_drawing.so 11e41f4b71Sopenharmony_ci 12e41f4b71Sopenharmony_ci**Since**: 12 13e41f4b71Sopenharmony_ci 14e41f4b71Sopenharmony_ci**Related module**: [Drawing](_drawing.md) 15e41f4b71Sopenharmony_ci 16e41f4b71Sopenharmony_ci 17e41f4b71Sopenharmony_ci## Summary 18e41f4b71Sopenharmony_ci 19e41f4b71Sopenharmony_ci 20e41f4b71Sopenharmony_ci### Types 21e41f4b71Sopenharmony_ci 22e41f4b71Sopenharmony_ci| Name| Description| 23e41f4b71Sopenharmony_ci| -------- | -------- | 24e41f4b71Sopenharmony_ci| typedef enum [OH_Drawing_FilterMode](_drawing.md#oh_drawing_filtermode) [OH_Drawing_FilterMode](_drawing.md#oh_drawing_filtermode) | Describes an enum for filter modes.| 25e41f4b71Sopenharmony_ci| typedef enum [OH_Drawing_MipmapMode](_drawing.md#oh_drawing_mipmapmode) [OH_Drawing_MipmapMode](_drawing.md#oh_drawing_mipmapmode) | Describes an enum for mipmap modes.| 26e41f4b71Sopenharmony_ci 27e41f4b71Sopenharmony_ci 28e41f4b71Sopenharmony_ci### Enums 29e41f4b71Sopenharmony_ci 30e41f4b71Sopenharmony_ci| Name| Description| 31e41f4b71Sopenharmony_ci| -------- | -------- | 32e41f4b71Sopenharmony_ci| [OH_Drawing_FilterMode](_drawing.md#oh_drawing_filtermode) { FILTER_MODE_NEAREST, FILTER_MODE_LINEAR } | Enumerates the filter modes.| 33e41f4b71Sopenharmony_ci| [OH_Drawing_MipmapMode](_drawing.md#oh_drawing_mipmapmode) { MIPMAP_MODE_NONE, MIPMAP_MODE_NEAREST, MIPMAP_MODE_LINEAR } | Enumerates the mipmap modes.| 34e41f4b71Sopenharmony_ci 35e41f4b71Sopenharmony_ci 36e41f4b71Sopenharmony_ci### Functions 37e41f4b71Sopenharmony_ci 38e41f4b71Sopenharmony_ci| Name| Description| 39e41f4b71Sopenharmony_ci| -------- | -------- | 40e41f4b71Sopenharmony_ci| [OH_Drawing_SamplingOptions](_drawing.md#oh_drawing_samplingoptions) \* [OH_Drawing_SamplingOptionsCreate](_drawing.md#oh_drawing_samplingoptionscreate) ([OH_Drawing_FilterMode](_drawing.md#oh_drawing_filtermode), [OH_Drawing_MipmapMode](_drawing.md#oh_drawing_mipmapmode)) | Creates an **OH_Drawing_SamplingOptions** object.| 41e41f4b71Sopenharmony_ci| void [OH_Drawing_SamplingOptionsDestroy](_drawing.md#oh_drawing_samplingoptionsdestroy) ([OH_Drawing_SamplingOptions](_drawing.md#oh_drawing_samplingoptions) \*) | Destroys an **OH_Drawing_SamplingOptions** object and reclaims the memory occupied by the object.| 42