How to make a function which use TBitmap work for FireMonkey and VCL?


On firemonkey TBitmap is but on VCL it’s Their interface are very similar, and i want to create for example this function

function resizeBitmap(const aBitmap: Tbitmap; const w, h: integer);

As the code in resizeBitmap will be exactly the same for or i would like to make this function available for both VCL app and FMX app (without duplicate it because it’s mean i will simply need to copy past the code and replace in uses by

is their a way or a conditional define that can help me in this job ?

Comments are closed.