ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Inserting RasterImage using image buffer with Autocad 2015

0 REPLIES 0
Reply
Message 1 of 1
joaoljr
497 Views, 0 Replies

Inserting RasterImage using image buffer with Autocad 2015

Hello

 

I'm trying to run this example on Autocad 2015 (Windows 7, x64):

 

http://knowledge.autodesk.com/support/autocad-structural-detailing/downloads/caas/blog/adndevblog.ty...

 

But I get an Atil::ImageConstructionException at the last line below:

 

Atil::ImagePixel initialImage;
initialImage.setToZero();
initialImage.type = Atil::DataModelAttributes::kRgba;
initialImage.value.rgba = 0xff000000;

Atil::Size size(640, 640);
const Atil::RgbModel *pDm = new Atil::RgbModel(
    Atil::RgbModelAttributes::k4Channels,
    Atil::DataModelAttributes::kBlueGreenRedAlpha);

Atil::Image *pAtilImage = new Atil::Image(size, pDm, initialImage);

 

The exception details and stacktrace only say it happened on Atil::TiledImage::construct. I reduced the exemple to a command with just the code snipet above, but the exception still happens. Any hints about what could be causing that?

 

Thanks,

Joao

 

 

 

 

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost