How can I create my own Tile Map Service Provider class?

I created a tile map service use gdal2tiles. I used createTileMapServiceImageryProvider to connect to that TMS. But I want to have full access to array of tiles that loaded from server, for example, to do basic image processing on that tiles. What Cesium interface i have to implement to do that.

Hello,

Sorry, I don’t quite understand what you are trying to do. Could you elaborate?

Thanks,

Hannah