How to show Matrix{RGB} on Cairo surface?

Most bitmaps in graphics are row-first i.e. consecutive pixels in x-axis.