User Tools

Site Tools


samples:samples:pixeledit

Table of Contents

PixelEdit sample

Documentation | Samples | PixelEdit

Summary

How to modify pixels covered by a polygon and calculate terrain profile.

Description

This sample illustrates use of:

Name Description
TGIS_LayerPixelEncapsulation of a common image layer - abstract class.
TGIS_LayerPixel.LoopPrepares enumerator to iterate the layer through the linear shape.
TGIS_LayerPixel.LockPixelsLocks a fragment of the pixel layer for updating.
TGIS_LayerPixel.UnlockPixelsUnLocks a fragment.
TGIS_LayerPixel.SaveDataSave the entire layer to the file.
TGIS_PixelItemPixel value used mainly in iterators.
TGIS_LayerPixelLockStructure of locked image area.
TGIS_Color.FromRGBCreates a color using the RGB color model.

Code

This sample is available on following platforms (click to see source code):

2022/10/06 08:53

Page Tools