CVB.Net 15.1
Loading...
Searching...
No Matches
Vpat Struct Reference

Virtual Pixel Access Table. More...

Classes

struct  Entry
 One entry of the VPAT. More...
 
class  IndexerBase
 Indexer object for X and Y VPAT access. More...
 
class  IntIndexer
 Indexer that returns an Int32 offset. More...
 
class  IntPtrIndexer
 Indexer that returns an IntPtr offset. More...
 
class  LongIndexer
 Indexer that returns an Int64 offset. More...
 

Properties

readonly VpatLayout XVpatLayout [get]
 Increment layout of the x VPAT.
 
readonly VpatLayout YVpatLayout [get]
 Increment layout of the y VPAT.
 
VpatLayout VpatLayout [get]
 Combined VPAT layout. If x or y VPAT layout is confuse, the combined layout will also be confuse. If x or y VPAT layout is linear, the combined layout will also be linear. If x and y VPAT layout is linear with data type, the combined layout will be linear with data type.
 
readonly VpatRotation Rotation [get]
 Guesses the rotation of this VPAT.
 
readonly IntPtrIndexer XEntry [get]
 X offset table.
 
readonly IntPtrIndexer YEntry [get]
 Y offset table.
 
readonly IntIndexer IntXEntry [get]
 X offset table.
 
readonly IntIndexer IntYEntry [get]
 Y offset table.
 
readonly LongIndexer LongXEntry [get]
 X offset table.
 
readonly LongIndexer LongYEntry [get]
 Y offset table.
 
readonly IntPtr BasePtr [get]
 VPAT base pointer.
 
readonly IntPtr VpatPtr [get]
 Pointer to the native VPAT structure.
 

Detailed Description

Virtual Pixel Access Table.

Property Documentation

◆ BasePtr

readonly IntPtr BasePtr
get

VPAT base pointer.

Note that this is not necessarily a pointer to the first pixel in the image or the first pixel in the last line of the image, but merely a base pointer for calculating the address of a pixel using the x and y offset tables.

◆ IntXEntry

readonly IntIndexer IntXEntry
get

X offset table.

VPAT access is returned as Int32 with this indexer. Note that it is only safe to use this indexer if your application is running as a 32 bit application.

◆ IntYEntry

readonly IntIndexer IntYEntry
get

Y offset table.

VPAT access is returned as Int32 with this indexer. Note that it is only safe to use this indexer if your application is running as a 32 bit application.

◆ LongXEntry

readonly LongIndexer LongXEntry
get

X offset table.

VPAT access is returned as Int64 with this indexer. This indexer is safe to use for 32 or 64 bit applications, but may increase processing time.

◆ LongYEntry

readonly LongIndexer LongYEntry
get

Y offset table.

VPAT access is returned as Int64 with this indexer. This indexer is safe to use for 32 or 64 bit applications, but may increase processing time.

◆ Rotation

readonly VpatRotation Rotation
get

Guesses the rotation of this VPAT.

The assumption about the underlying buffer is that it is positively linear (positive x- and y-increments). If this is not the case as with default windows bitmaps, the guess is plain wrong.

Entry of the VpatRotation enumeration.

◆ VpatPtr

readonly IntPtr VpatPtr
get

Pointer to the native VPAT structure.

This points to the first Entry and can be interpreted as Entry* in unsafe context.

◆ XEntry

readonly IntPtrIndexer XEntry
get

X offset table.

VPAT access is returned as IntPtr with this indexer, giving you the correct size of offsets for the platform you are running on, but making it necessary to properly convert the offsets when doing calculations.

◆ YEntry

readonly IntPtrIndexer YEntry
get

Y offset table.

VPAT access is returned as IntPtr with this indexer, giving you the correct size of offsets for the platform you are running on, but making it necessary to properly convert the offsets when doing calculations.