Lazarus
Home
Forum
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Graphics
»
BGRABitmap and LazPaint
»
BGRA Draw behaves different on Windows vs GTK (Linux)
Downloads
Daily Snapshots
FAQ
Wiki
Bugtracker
IRC channel
Developer Blog
Follow us on Twitter
Mailing List
Free pascal
Other languages
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
About donations (wiki)
Bookstore
Lazarus, the complete guide
Search
Advanced search
« previous
next »
Print
Pages: [
1
]
Author
Topic: BGRA Draw behaves different on Windows vs GTK (Linux) (Read 444 times)
neseir
Newbie
Posts: 1
BGRA Draw behaves different on Windows vs GTK (Linux)
«
on:
February 16, 2013, 08:05:01 pm »
Hi
Have some problem with drawing a BGRABitmap using the Draw to the canvas to display a bitmap on a Paintbox components canvas.
On windows it uses the Paintbox canvas top left corner as reference but on Linux it uses the parent canvas or client area as top left corner. E.g. adding a TPanel as parent to the paintbox solved the problem for me but still the behaviour is different from Linux GTK to Windows regarding the drawing on the Canvas (using canvas functions like Line etc. works with top left corner of the Paintbox canvas as reference).
I'm using Lazarus 32 bit 1.0.6 both on Windows (64 bit Windows 7 Pro) and Linux (Ubuntu 32 bit 12.10).
Regards
Eirik Nesje
Logged
circular
Hero Member
Posts: 1401
Re: BGRA Draw behaves different on Windows vs GTK (Linux)
«
Reply #1 on:
February 16, 2013, 11:17:35 pm »
Maybe try to modify BGRAGtkBitmap unit.
gdk_pixbuf_render_to_drawable and gdk_draw_rgb_32_image are used to draw using gdk. Offsets are read from TGtkDeviceContext(ACanvas.Handle) variable.
Logged
Conscience is the debugger of the mind
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Graphics
»
BGRABitmap and LazPaint
»
BGRA Draw behaves different on Windows vs GTK (Linux)
Recent
TField alias in TSQLQuery
by
larsal007
[
Today
at 02:52:05 am]
string assignment on fpc ...
by
parcel
[
Today
at 02:51:29 am]
New component tab with gr...
by
Jurassic Pork
[
Today
at 02:32:11 am]
What did I do to Tortoise...
by
Martin_fr
[
Today
at 02:31:58 am]
[Solved] property Showhin...
by
Jurassic Pork
[
Today
at 01:47:15 am]
A feature for Lazarus?
by
Martin_fr
[
Today
at 01:26:01 am]
Binary Decimal Convertor ...
by
BenJones
[
Today
at 12:39:31 am]
Generics.Collections
by
mrmizak
[May 22, 2013, 10:05:57 pm]
Sniplet Ed v1.0
by
BenJones
[May 22, 2013, 09:23:33 pm]
Qt so slow
by
stocki
[May 22, 2013, 09:22:04 pm]