On firemonkey TBitmap is Fmx.graphics.TBitmap but on VCL it’s VCL.graphics.Tbitmap. 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 Fmx.graphics.TBitmap or VCL.graphics.Tbitmap 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 Fmx.graphics.TBitmap by VCL.graphics.Tbitmap)
is their a way or a conditional define that can help me in this job ?