trichview.com

trichview.support




Custom Image Saving...


Return to index


Author

Message

Pieter E.

Posted: 10/23/2004 23:46:05


I'm trying the demo of the custom image saving.

Everything works correct.


But before the images are saved I'd like to optimize them. To optimize an

Image I need the original size and the desired size.


For the original size I use:

TGraphic* gr;

int originalWidth = gr->Width;

int originalHeight = gr->Height;


For the desired size I use:

int desiredWidth = RichViewEdit1->GetItem(ItemNo)->GetImageWidth(RVStyle1);

int desiredHeight = RichViewEdit1->GetItem(ItemNo)->GetImageHeight(RVStyle1);


Everything works correct. But when an Image is nested in a Table the desiredWidth

and desiredHeight are 0 (Zero).


Do you have a solution?


Thanks.


Pieter E.





Powered by ABC Amber Outlook Express Converter