A Little Question

TheCokeGuy
TheCokeGuy used Ask the Experts™
on
This line works:
Procedure GrayScale(Value: TImage); overload;

Can anyone tell me why this don't work?
Procedure Resize(Value: TImage; Width: Integer; Height: Integer);

Are there missing something?

"It is for a component"
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
You'll have to be a bit more specific, what doesn't work? Can you give us a bit more code? It all depends of the context, the prototype in itself is not wrong but if the ancestor has a Resize property you might need to overload this one to as the GrayScale procedure.

Do you have an compiler error? Do you have a run-time error? Is it just the procedure that does do what it is suppose to do?
need more info CokeGuy, please ;)

best wishes
Manuel Lopez (lopem)
if it is for a TControl descendant, then you can't because Resize is already used.

perhaps another name, say ResizeImage. Or if really necessary, then put

procedure Resize(Value: TImage; Width: Integer; Height: Integer); overload;

of course, this might create some confusion later.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial