Drawing a bitmap using 2D DMA on STMF32F4
I have figured it out.
In case someone wants to do it

void BSP_LCD_DrawBitmap(uint16_t layer,uint32_t X, uint32_t Y, uint8_t *pBmp)
{

  uint32_t index = 0, width = 0, height = 0, bitpixel = 0;
  uint32_t address;
  uint32_t inputcolormode = 0;

  /* Get bitmap data address offset */
  index = 0;
  /* Read bitmap width */
  width = 240;

  /* Read bitmap height */
  height = 340;;

  /* Read bit/pixel */
  bitpixel = 2;

  /* Set Address */
  address = LtdcHandler.LayerCfg[ActiveLayer].FBStartAdress + (((BSP_LCD_GetXSize()*Y) + X)*(2));

    inputcolormode = CM_RGB565;

  /* bypass the bitmap header */
  pBmp += width*2;
   for(index=0; index &lt; height; index++)
  {
  /* Pixel format conversion */
  ConvertLineToRGB565((uint32_t *)pBmp, (uint32_t *)address, width, inputcolormode);

  /* Increment the source and destination buffers */
  address+=  ((BSP_LCD_GetXSize())*2);
  pBmp += width*2;
  }