On Mon, 2010-10-18 at 18:10 +0200, Tomasz Michno wrote:
+/* unfortunately GetProcAddress cannot return proper pointer to from_bmformat() function, but for this function it's not a problem, using copy from ../transform.c */
That's not how it's done in Wine, you will need to go through the API. In this case that means you need to define a bitmap in the appropriate format, create a color transform and then call TranslateBitmapBits.
Note that Wine doesn't bundle a color profile, so you need to install one, or configure your X server to use one and retrieve it via GetICMProfile.