CFx SDK Documentation
2020SP3
|
Go to the documentation of this file.
25 #ifndef ODTRVISTEXTURE
26 #define ODTRVISTEXTURE
122 for(
OdUInt32 i = 0; i < linesCount; ++i )
134 for(
OdUInt32 i = 0; i < linesCount; ++i )
224 bool bOwnExistBuffer =
false );
virtual void setPalette(OdTrVisTexture *pTexture)=0
static bool save(OdTrVisTexture *pTexture, const OdString &fileName)
virtual void getScanline(OdUInt32 startLine, OdUInt32 linesCount, TextureColor *pScanline) const
static OdTrVisTexturePtr createTexture(OdTrVisTexture::Format fmt, OdUInt32 nWidth, OdUInt32 nHeight, OdUInt32 nAlign=4)
static void prepareTextureColors(TextureColor *colors, OdUInt32 size, const TextureColorContext &context)
virtual bool isFPImage() const =0
const OdUInt8 * textureData() const
virtual OdUInt32 subDivLimit() const =0
virtual ~OdTrVisTexture()
static OdTrVisTexturePtr convert(OdTrVisTexture::Format fmt, OdTrVisTexture *pTexture, OdUInt32 nNewAlign=0, OdTrVisTexture *pPalette=NULL)
virtual void setScanline(OdUInt32 startLine, OdUInt32 linesCount, const TextureColor *pScanline)
OdSmartPtr< OdTrVisTexture > OdTrVisTexturePtr
virtual void getColor(OdUInt32 nX, OdUInt32 nY, TextureColor &color) const =0
static OdTrVisTexturePtr createTextureFrom(OdTrVisTexture::Format fmt, OdUInt32 nWidth, OdUInt32 nHeight, OdUInt32 nAlign, void *buffer, OdTrVisTexture *pPalette=NULL, bool bOwnExistBuffer=false)
virtual void setColor(OdUInt32 nX, OdUInt32 nY, const TextureColor &color)=0
virtual OdTrVisTexture * palette()=0
static OdTrVisTexturePtr convert(OdTrVisTexture *pTextureTo, const OdTrVisTexture *pTextureFrom, Resampler method=kNearest)
static OdTrVisTexturePtr createPow2TextureFrom(OdTrVisTexture::Format fmt, bool bRequirePow2, OdUInt32 nMaxSize, OdUInt32 nAlign, OdTrVisTexture::Format bufferFmt, OdUInt32 bufferWidth, OdUInt32 bufferHeight, OdUInt32 bufferAlign, void *buffer, Resampler method, OdTrVisTexture *pPalette=NULL)
virtual Format format() const =0
OdUInt32 getScanlineLength() const
static OdTrVisTexturePtr convertAndResample(OdTrVisTexture::Format fmt, Resampler method, OdUInt32 newWidth, OdUInt32 newHeight, OdTrVisTexture *pTexture, OdUInt32 nNewAlign=0, OdTrVisTexture *pPalette=NULL)
static OdTrVisTexturePtr resamplePow2(Resampler method, bool bRequirePow2, OdTrVisTexture *pTexture, OdUInt32 nMaxSize)
virtual const OdTrVisTexture * palette() const =0
static OdTrVisTexturePtr resample(Resampler method, OdUInt32 newWidth, OdUInt32 newHeight, OdTrVisTexture *pTexture)
OdUInt32 getTextureHeight() const
OdUInt32 getDataAlignment() const
virtual TextureColor getMaxValues() const =0
void prepareContext(const OdTrVisTexture *pSrc, const OdTrVisTexture *pDst)
virtual void endEditing()=0
virtual void beginEditing()=0
OdUInt32 getTextureWidth() const
virtual bool isSmoothResampleSupported() const =0
static OdTrVisTexturePtr createTextureFrom(OdTrVisTexture::Format fmt, OdUInt32 nWidth, OdUInt32 nHeight, OdUInt32 nAlign, OdTrVisTexture::Format bufferFmt, OdUInt32 bufferWidth, OdUInt32 bufferHeight, OdUInt32 bufferAlign, void *buffer, Resampler method, OdTrVisTexture *pPalette=NULL)