Board index » cppbuilder » Image Manipulation Issue

Image Manipulation Issue


2006-10-07 10:04:38 PM
cppbuilder46
I have a superclass that sets up an image array (i call it PixelData) from a
bitmap and allows you to copy to that image array. (i.e. copy to the orinal
bitmap). I then have a base class that extends this superclass and I have
access to my Pixeldata array. In this base class I do some image
manipulation and copy the results to PixelData which is then copied to the
Bitmap. The problem i get however is that the results dont get save to the
orinal bitmap from the base class, but they do get saved if I perform the
manipulation in the superclass. Im sure that i am getting a copy of my
pixeldata in my base class and all manipulation. And when I finally close my
program i get a EInvalidPointer reference error, can anyone please help me.
I would post the code but it is simply too long to read.
Regards Michael
 
 

Re:Image Manipulation Issue

Ok i have narrowed down the problem further. My superclass is called
ImageProcess and I have a base class called Filter and ConnectedComponents.
When I want to make a object of ConnectedComponents in Filter the results
dont write back to Pixeldata and I get the following error message
"EInvalidPointer..invalid pointer operation"
"borland" < XXXX@XXXXX.COM >wrote in message
Quote
I have a superclass that sets up an image array (i call it PixelData) from
a bitmap and allows you to copy to that image array. (i.e. copy to the
orinal bitmap). I then have a base class that extends this superclass and I
have access to my Pixeldata array. In this base class I do some image
manipulation and copy the results to PixelData which is then copied to the
Bitmap. The problem i get however is that the results dont get save to the
orinal bitmap from the base class, but they do get saved if I perform the
manipulation in the superclass. Im sure that i am getting a copy of my
pixeldata in my base class and all manipulation. And when I finally close
my program i get a EInvalidPointer reference error, can anyone please help
me. I would post the code but it is simply too long to read.

Regards Michael

 

Re:Image Manipulation Issue

K here is the latest problem. Using Multiple Inheritence:
ImageProcess
|
-------------------------------------------------------------------------------
|
|
ConnectedComponents
Filter
|
|
----------------------------------------------------------------------------------
|
ImageExtraction
now in ImageProcess I have a Binarise method and a tBitmap variable that
holds the data of the image. If I perform any manipulation i need to write
the results to tBitmap. But now there is an Ambiguity. ConnectedComponents
has a tBitmap and Filter has a tBitmap. And if I say display the Filter
tBitmap then it will only show what filter im using and similar to
ConnectedComponents. How can I overcome this ambiguity so that I can perform
a filtering and find the connected components and write the results to a
tBitmap.
Thanks Mike
"borland" < XXXX@XXXXX.COM >wrote in message
Quote
I have a superclass that sets up an image array (i call it PixelData) from
a bitmap and allows you to copy to that image array. (i.e. copy to the
orinal bitmap). I then have a base class that extends this superclass and I
have access to my Pixeldata array. In this base class I do some image
manipulation and copy the results to PixelData which is then copied to the
Bitmap. The problem i get however is that the results dont get save to the
orinal bitmap from the base class, but they do get saved if I perform the
manipulation in the superclass. Im sure that i am getting a copy of my
pixeldata in my base class and all manipulation. And when I finally close
my program i get a EInvalidPointer reference error, can anyone please help
me. I would post the code but it is simply too long to read.

Regards Michael

 

{smallsort}