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 );
OdSmartPtr< OdTrVisTexture > OdTrVisTexturePtr
static void prepareTextureColors(TextureColor *colors, OdUInt32 size, const TextureColorContext &context)
virtual OdTrVisTexture * palette()=0
virtual void endEditing()=0
virtual void beginEditing()=0
virtual TextureColor getMaxValues() const =0
virtual void getColor(OdUInt32 nX, OdUInt32 nY, TextureColor &color) const =0
virtual void setScanline(OdUInt32 startLine, OdUInt32 linesCount, const TextureColor *pScanline)
virtual void setColor(OdUInt32 nX, OdUInt32 nY, const TextureColor &color)=0
OdUInt32 getScanlineLength() const
virtual OdUInt32 subDivLimit() const =0
virtual const OdTrVisTexture * palette() const =0
virtual bool isSmoothResampleSupported() const =0
const OdUInt8 * textureData() const
virtual ~OdTrVisTexture()
virtual void getScanline(OdUInt32 startLine, OdUInt32 linesCount, TextureColor *pScanline) const
virtual Format format() const =0
OdUInt32 getDataAlignment() const
virtual bool isFPImage() const =0
virtual void setPalette(OdTrVisTexture *pTexture)=0
OdUInt32 getTextureHeight() const
OdUInt32 getTextureWidth() const
static bool save(OdTrVisTexture *pTexture, const OdString &fileName)
static OdTrVisTexturePtr convert(OdTrVisTexture *pTextureTo, const OdTrVisTexture *pTextureFrom, Resampler method=kNearest)
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)
static OdTrVisTexturePtr resamplePow2(Resampler method, bool bRequirePow2, OdTrVisTexture *pTexture, OdUInt32 nMaxSize)
static OdTrVisTexturePtr resample(Resampler method, OdUInt32 newWidth, OdUInt32 newHeight, OdTrVisTexture *pTexture)
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)
static OdTrVisTexturePtr createTexture(OdTrVisTexture::Format fmt, OdUInt32 nWidth, OdUInt32 nHeight, OdUInt32 nAlign=4)
static OdTrVisTexturePtr convertAndResample(OdTrVisTexture::Format fmt, Resampler method, OdUInt32 newWidth, OdUInt32 newHeight, OdTrVisTexture *pTexture, OdUInt32 nNewAlign=0, OdTrVisTexture *pPalette=NULL)
static OdTrVisTexturePtr convert(OdTrVisTexture::Format fmt, OdTrVisTexture *pTexture, OdUInt32 nNewAlign=0, OdTrVisTexture *pPalette=NULL)
static OdTrVisTexturePtr createTextureFrom(OdTrVisTexture::Format fmt, OdUInt32 nWidth, OdUInt32 nHeight, OdUInt32 nAlign, void *buffer, OdTrVisTexture *pPalette=NULL, bool bOwnExistBuffer=false)
void prepareContext(const OdTrVisTexture *pSrc, const OdTrVisTexture *pDst)